Skip to content

Commit

Permalink
automerge only on success
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Sep 29, 2023
1 parent 03f5309 commit b0eb796
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Dependabot auto-merge
on: pull_request
on:
workflow_run:
workflows: ["Node.js CI"]
types:
- completed

permissions:
contents: write
Expand All @@ -8,7 +12,7 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.event.workflow_run.event == 'pull_request' && github.actor == 'dependabot[bot]' && github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Dependabot metadata
id: metadata
Expand Down

0 comments on commit b0eb796

Please sign in to comment.