Skip to content

Commit 6d51a3b

Browse files
committed
ci: 修改 GitHub Actions 工作流中的分支推送逻辑
- 将动态推送分支改为直接推送至 main 分支
1 parent 04b967b commit 6d51a3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ jobs:
7070
git config --local user.name "GitHub Action"
7171
git config advice.ignoredHook false
7272
git commit -m "docs(README): update README-zh.md"
73-
BRANCH=$(echo "${GITHUB_REF}" | sed 's@refs/heads/@@')
74-
git push origin HEAD:$BRANCH || echo "Push to repository failed"
73+
git push origin main || echo "Push to repository failed"
7574
7675
- name: Upload build artifacts
7776
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)