Skip to content

Commit

Permalink
Merge pull request #6 from h7ml/dev
Browse files Browse the repository at this point in the history
ci: 修改 GitHub Actions 工作流中的分支推送逻辑
  • Loading branch information
h7ml authored Dec 14, 2024
2 parents 4b262e7 + 6d51a3b commit fafb0da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ jobs:
git config --local user.name "GitHub Action"
git config advice.ignoredHook false
git commit -m "docs(README): update README-zh.md"
BRANCH=$(echo "${GITHUB_REF}" | sed 's@refs/heads/@@')
git push origin HEAD:$BRANCH || echo "Push to repository failed"
git push origin main || echo "Push to repository failed"
- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit fafb0da

Please sign in to comment.