Skip to content

Commit

Permalink
Update automerge.yml (#13446)
Browse files Browse the repository at this point in the history
  • Loading branch information
dulong41 authored Nov 16, 2022
1 parent 20ce543 commit 0838d48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ on:
jobs:
automerge:
runs-on: ubuntu-latest
if: ${{ github.event.label.name == 'automerge' }}
steps:
- uses: hmarr/auto-approve-action@v2
if: contains( github.event.pull_request.labels.*.name, 'automerge')
with:
github-token: ${{ secrets.PAT }}

- name: enable automerge
if: contains( github.event.pull_request.labels.*.name, 'automerge')
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.PAT }}
Expand Down

0 comments on commit 0838d48

Please sign in to comment.