Skip to content

Commit

Permalink
fix: Only enable auto-merge on created pull requests in sync-lockfiles (
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz authored Apr 26, 2024
1 parent f36adbc commit fa22b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
token: ${{ secrets.BOT_TOKEN_WORKFLOW }}

- name: Enable auto merge for the pull request
if: ${{ steps.cpr.outputs.pull-request-operation != 'closed' }}
if: ${{ steps.cpr.outputs.pull-request-operation == 'created' }}
run: >
gh pr merge "${{ steps.cpr.outputs.pull-request-number }}"
--subject "build: Sync `Cargo.lock` with eclipse-zenoh/zenoh@${{ needs.fetch.outputs.zenoh-head-hash }} from ${{ needs.fetch.outputs.zenoh-head-date }} (#${{ steps.cpr.outputs.pull-request-number }})"
Expand Down

0 comments on commit fa22b32

Please sign in to comment.