Skip to content

Commit

Permalink
Fix the dependabot auto-approve workflow's condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nblagoev committed Mar 17, 2021
1 parent ac11dc4 commit 5d6fe88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dependabot-pr.yml
Expand Up @@ -8,7 +8,10 @@ jobs:
autoapprove:
name: Approve pull request
runs-on: ubuntu-latest
if: github.base_ref == 'master' && github.actor == 'dependabot[bot]'
if: >
${{ github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
github.actor == 'dependabot[bot]' }}
steps:
- name: Approve
uses: actions/github-script@v2
Expand Down

0 comments on commit 5d6fe88

Please sign in to comment.