Skip to content

Commit

Permalink
Fix autoapprove workflow
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 086849c commit 58266ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/autoapprove.yml
@@ -1,14 +1,16 @@
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.1.0
with:
Expand Down

0 comments on commit 58266ae

Please sign in to comment.