Skip to content

Commit

Permalink
Promote if to job level (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Sep 21, 2022
1 parent b0011f5 commit b40d6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]'
steps:
- uses: hmarr/auto-approve-action@v2
if: github.actor == 'dependabot[bot]'
```

If you want to use this action from a workflow file that doesn't run on the `pull_request` or `pull_request_target` events, use the `pull-request-number` input:
Expand Down Expand Up @@ -74,9 +74,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]'
steps:
- uses: hmarr/auto-approve-action@v2
if: github.actor == 'dependabot[bot]'
with:
review-message: "Auto approved automated PR"
```
Expand Down

0 comments on commit b40d6c9

Please sign in to comment.