Skip to content

Commit

Permalink
Merge pull request #8014 from jrjohnson/dont-approve-update
Browse files Browse the repository at this point in the history
Try and Approve with Github
  • Loading branch information
stopfstedt authored Jul 26, 2024
2 parents 57ed1de + d5e3791 commit 0ce7e4f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update-transitive-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
jobs:
update:
runs-on: macos-latest

permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -37,10 +38,13 @@ jobs:
[1]: https://github.com/peter-evans/create-pull-request
branch: auto-update-dependencies
labels: dependencies,run percy tests
- name: Approve Pull Request
if: steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr review --approve -b "Auto Approved" ${{ steps.cpr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
run: |
gh pr review --approve -b "Auto Approved by Zorgbort" ${{ steps.cpr.outputs.pull-request-number }}
gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-number }}
run: gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.ZORGBORT_TOKEN }}

0 comments on commit 0ce7e4f

Please sign in to comment.