Skip to content

Commit c4ae4ba

Browse files
committed
Add auto-merge pipeline for dependabot
1 parent 2cbdddb commit c4ae4ba

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependabot auto-merge
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
dependabot:
14+
runs-on: ubuntu-latest
15+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'dotnet-project-file-analyzers/dotnet-project-file-analyzers.github.io'
16+
steps:
17+
- name: Enable auto-merge for Dependabot PRs
18+
run: gh pr merge --auto --merge "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)