Skip to content

Commit

Permalink
Apply dependabot autoapprove fix
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
Emerson Knapp committed Apr 6, 2021
1 parent 2f71b93 commit 1d94aa5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/autoapprove.yml
@@ -1,15 +1,17 @@
name: Auto approve

on: pull_request
on:
pull_request_target:
types: [labeled]

jobs:
# Auto-approve dependabot PRs since this repo requires at least one approving review.
# Dependabot will automatically merge minor version upgrades
# (see .dependabot/config.yml for more info).
auto-approve-dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
steps:
- uses: hmarr/auto-approve-action@v2.0.0
- uses: hmarr/auto-approve-action@v2.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 1d94aa5

Please sign in to comment.