Files
packages/.github/workflows/update.yml
T
madomado 730400aa95 fix(ci/update): better filter (#1576)
* fix(ci/update): better filter

This requires anda 0.2.2

Signed-off-by: madomado <madonuko@outlook.com>

* bump: discord-canary-openasar discord-canary envision preview stable osu-lazer libhelium terra-mesa tau-helium anda

* Revert "bump: discord-canary-openasar discord-canary envision preview stable osu-lazer libhelium terra-mesa tau-helium anda"

This reverts commit 69e3695090.

---------

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: Raboneko <raboneko@fyralabs.com>
2024-07-22 22:10:45 -07:00

54 lines
1.7 KiB
YAML

name: Update
on:
schedule:
- cron: "*/10 * * * *"
workflow_dispatch:
jobs:
autoupdate:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:frawhide
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }}
- name: Install SSH signing key & Set up git repository
run: |
mkdir -p ${{ runner.temp }}
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key
chmod 0700 ${{ runner.temp }}/signing_key
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run Update
run: anda update -vv --filters nightly=0
env:
GITHUB_TOKEN: ${{ secrets.AUTOUPDATE_GH_TOKEN }}
RUST_BACKTRACE: full
- name: Save
run: |
if [[ `git status --porcelain` ]]; then
git config user.name "Raboneko"
git config user.email "raboneko@fyralabs.com"
git config gpg.format "ssh"
git config user.signingkey "${{ runner.temp }}/signing_key"
msg="bump: $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')"
git commit -S -a -m "$msg"
copy_over () {
git format-patch HEAD^
git checkout $1
git apply *.patch || true
rm *.patch
git add *
git commit -S -a -m "$msg"
}
copy_over f39 || true
copy_over f40 || true
git push -u origin --all
fi