fix(ci/update-nightly): apply patch correctly (#2607)

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2024-12-12 22:03:52 +08:00
committed by GitHub
parent d990c98884
commit 12c45b75ab
+2 -3
View File
@@ -38,12 +38,11 @@ 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^
copy_over () {
git format-patch HEAD^
git checkout $1
git apply *.patch || true
rm *.patch
git add *
git add anda
git commit -S -a -m "$msg"
}
copy_over f39 || true