Skip to content

Commit f86c77c

Browse files
committed
Use --force-with-lease instead of -f
1 parent e43c658 commit f86c77c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

changelog/bundle-pr/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ runs:
8787
8888
git commit -m "Add changelog bundle ${BUNDLE_NAME}"
8989
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GIT_REPOSITORY}.git"
90-
# Force-push: branch is ephemeral and always rebuilt from scratch
91-
git push -f origin "$BRANCH"
90+
git push --force-with-lease origin "$BRANCH"
9291
git remote set-url origin "https://github.com/${GIT_REPOSITORY}.git"
9392
9493
BASE_FLAG=()

0 commit comments

Comments
 (0)