Skip to content

Commit

Permalink
fix: set -u when git push (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jan 17, 2025
1 parent eaf6233 commit 364af12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
git commit -m "Sync .gitattributes from ${{ github.ref_name }}"
fi
git merge origin/${{ github.ref_name }}
git push origin ${BRANCH_NAME} --force
git push -u origin ${BRANCH_NAME} --force
PR_URL="$(gh pr list --head "${BRANCH_NAME}" --state open --json url --jq .[].url)"
if [[ -n "${PR_URL}" ]]; then
echo "PR already exists -> ${PR_URL}"
Expand Down

0 comments on commit 364af12

Please sign in to comment.