Skip to content

Commit 5e7da9e

Browse files
GHA-216 Fix --force-with-lease failing with stale ref on bot branch (#126)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf5526f commit 5e7da9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create-pull-request/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ runs:
250250
REPO_URL="https://x-access-token:${RESOLVED_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
251251
git remote set-url origin "$REPO_URL"
252252
253-
# Push to remote
254-
git push --force-with-lease origin "$PR_BRANCH"
253+
# Push to remote (force is safe here: the branch is bot-owned and managed exclusively by this action)
254+
git push --force origin "$PR_BRANCH"
255255
echo "Pushed branch '${PR_BRANCH}' to origin."
256256
257257
- name: Create or update pull request

0 commit comments

Comments
 (0)