ci: 修复GitHub Actions权限和rebase问题
This commit is contained in:
1 parent
444056d34a
commit
1d7f63bc0c
2 files changed
+6
No files matched your search
@@ -92,7 +92,11 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: |
|
||||
git fetch origin main
|
||||
# stash任何未提交的更改,避免rebase失败
|
||||
git stash push -m "temp stash for rebase"
|
||||
git rebase origin/main
|
||||
# 恢复stash的更改
|
||||
git stash pop || true
|
||||
if ! git log --oneline -1 | grep -q "\[skip ci\]"; then
|
||||
echo "No auto-commits to push"
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user