Skip to content

Commit bec310f

Browse files
authored
fix(ci): force-push bump branch to handle pre-existing remote (#562)
1 parent 41e2743 commit bec310f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ git commit -m "[Automated] Bump dev version to ${CANDIDATE}"
136136
if [ -z "$DRYRUN" ]; then
137137
BUMP_BRANCH="automated/bump-${CANDIDATE//./-}"
138138
git checkout -b "$BUMP_BRANCH"
139-
git push --set-upstream origin "$BUMP_BRANCH"
139+
git push --force-with-lease --set-upstream origin "$BUMP_BRANCH"
140140
REPO="${GITHUB_REPOSITORY:-$(git remote get-url origin | sed 's|.*github.com[:/]\(.*\)\.git|\1|')}"
141141
BUMP_PR_URL="https://github.com/${REPO}/compare/${BRANCH}...${BUMP_BRANCH}?quick_pull=1&title=%5BAutomated%5D+Bump+dev+version+to+${CANDIDATE}"
142142
echo "BUMP_PR_URL=$BUMP_PR_URL" >> "${GITHUB_OUTPUT:-/dev/null}"

0 commit comments

Comments
 (0)