Merge pull request #20166 from Homebrew/sync-default-branches-force

workflows/sync-default-branches: force push instead of force-with-lease.
This commit is contained in:
Mike McQuaid 2025-06-24 15:29:14 +00:00 committed by GitHub
commit 3495ea576c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ jobs:
- name: Push target branch - name: Push target branch
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
run: git push origin "${TARGET_SHA}:refs/heads/${TARGET_BRANCH}" --force-with-lease run: git push origin "${TARGET_SHA}:refs/heads/${TARGET_BRANCH}" --force
env: env:
TARGET_SHA: ${{ steps.sha.outputs.target }} TARGET_SHA: ${{ steps.sha.outputs.target }}
TARGET_BRANCH: ${{ steps.branches.outputs.target }} TARGET_BRANCH: ${{ steps.branches.outputs.target }}