Skip to content

Commit

Permalink
Fix auto merge
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellatman committed Nov 27, 2024
1 parent 7d32a20 commit 08f6e36
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/update-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ jobs:
This PR was automatically generated by the package update workflow.
branch: update-package-list
base: main
delete-branch: true

- name: Merge Pull Request
delete-branch: true
labels: |
automated pr
automerge
- name: Enable Auto-Merge
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-or-update-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: ${{ steps.commit-msg.outputs.message }}
branch: update-package-list
base: main
run: |
PR_NUMBER=$(gh pr list --json number --jq '.[0].number')
gh pr merge $PR_NUMBER --auto --merge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 08f6e36

Please sign in to comment.