Skip to content

Commit

Permalink
Dependabot flags PRs to automerge
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Apr 20, 2022
1 parent c3a09b0 commit d4c866b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Dependabot auto-merge
on: pull_request_target
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Fetch metadata
uses: dependabot/fetch-metadata@v1.3.0

# Enable the automerge using a PAT so the merge commits trigger workflows
- name: Auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOBUILD }}

0 comments on commit d4c866b

Please sign in to comment.