Skip to content

Commit e122fab

Browse files
authored
Update auto-merge.yml
1 parent 3d5e9cb commit e122fab

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/auto-merge.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
name: auto-merge
1+
name: Dependabot auto-merge
2+
on: pull_request
23

3-
on:
4-
pull_request:
4+
permissions:
5+
contents: write
56

67
jobs:
7-
auto-merge:
8+
dependabot:
89
runs-on: ubuntu-latest
10+
if: ${{ github.actor == 'dependabot[bot]' }}
911
steps:
10-
- uses: actions/checkout@v2
11-
- uses: ahmadnassri/action-dependabot-auto-merge@v2
12+
- name: Dependabot metadata
13+
id: metadata
14+
uses: dependabot/[email protected]
1215
with:
13-
target: major
14-
github-token: ${{ secrets.TOKEN }}
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
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+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)