Skip to content

Commit 91a5860

Browse files
authored
Add workflow to enable auto-merge for dependabot (#95)
1 parent e80d0ff commit 91a5860

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Dependabot auto-merge
2+
on: pull_request_target
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
jobs:
7+
dependabot:
8+
runs-on: ubuntu-20.04
9+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
10+
steps:
11+
- name: Dependabot metadata
12+
id: dependabot-metadata
13+
uses: dependabot/[email protected]
14+
- name: Enable auto-merge for Dependabot PRs
15+
run: gh pr merge --auto --squash "$PR_URL"
16+
env:
17+
PR_URL: ${{github.event.pull_request.html_url}}
18+
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

0 commit comments

Comments
 (0)