fix(ci): update-nightly

Signed-off-by: madomado <wboy111@outlook.com>
This commit is contained in:
madomado
2023-05-04 10:05:39 +08:00
committed by GitHub
parent c2aa0dce26
commit 7edfb3f3c5
+9 -10
View File
@@ -8,7 +8,7 @@ jobs:
autoupdate:
runs-on: ubuntu-latest
container:
image: ghcr.io/terrapkg/builder:38
image: ghcr.io/terrapkg/builder:f38
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout
@@ -38,14 +38,13 @@ jobs:
git config user.signingkey "${{ runner.temp }}/signing_key"
msg="bump(nightly): $(git status | grep modified | sed -r 's@.+/([^/]+)/[^/]+\n?@\1 @g' | tr -d '\n')"
git commit -S -a -m "$msg"
git format-patch HEAD^
git checkout f38
git apply *.patch || true
git add anda
git commit -S -a -m "$msg"
git checkout f37
git apply *.patch || true
git add anda
git commit -S -a -m "$msg"
f37 () {
git format-patch HEAD^
git checkout f37
git apply *.patch || true
git add *
git commit -S -a -m "$msg"
}
f37 || true
git push -u origin --all
fi