Skip to content

Commit

Permalink
Merge pull request #8053 from jrjohnson/fix-automerge-permissions
Browse files Browse the repository at this point in the history
Split Label and Review Process in Automerge Workflow
  • Loading branch information
michaelchadwick authored Aug 7, 2024
2 parents c718a53 + d6b6036 commit 2212c54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v4
if: ${{contains(steps.metadata.outputs.dependency-names, matrix.safe-dependency) && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch') }}
- name: Enable auto-merge for Dependabot PRs
if: ${{contains(steps.metadata.outputs.dependency-names, matrix.safe-dependency) && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch') }}
- name: Review and Label
run: |
gh pr edit --add-label "ready to merge" ${{ steps.cpr.outputs.pull-request-number }}
gh pr review --approve -b "Auto Approved" ${{ github.event.number }}
gh pr merge --merge --auto ${{ github.event.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Auto Merge
run: gh pr merge --merge --auto ${{ github.event.number }}
env:
GH_TOKEN: ${{ secrets.ZORGBORT_TOKEN }}

0 comments on commit 2212c54

Please sign in to comment.