Update bump-and-build.yml

This commit is contained in:
octoshrimpy
2025-06-28 15:24:12 -04:00
committed by GitHub
parent f35b6a5e55
commit ef1a9809ff
+9 -2
View File
@@ -123,8 +123,15 @@ jobs:
- name: Push bump branch - name: Push bump branch
run: | run: |
git checkout -b bump/${{ env.NEW_NAME }}-${{ env.NEW_CODE }} branch="bump/${{ env.NEW_NAME }}-${{ env.NEW_CODE }}"
git push --set-upstream origin bump/${{ env.NEW_NAME }}-${{ env.NEW_CODE }} # Create or switch to the branch locally
if git rev-parse --verify "$branch" >/dev/null 2>&1; then
git checkout "$branch"
else
git checkout -b "$branch"
fi
# Force-push safely: only if the remote hasn't moved since last fetched
git push --force-with-lease origin HEAD:"$branch"
- name: Open PR (no auto-merge) - name: Open PR (no auto-merge)
uses: peter-evans/create-pull-request@v5 uses: peter-evans/create-pull-request@v5