File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Dependabot auto-merge
2
- on : pull_request
1
+ name : Dependabot automation
2
+
3
+ on : # yamllint disable-line rule:truthy
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - synchronize
3
8
4
9
permissions :
5
- pull-requests : write
6
10
contents : write
11
+ pull-requests : write
7
12
8
13
jobs :
9
14
dependabot :
15
+ env :
16
+ PR_URL : ${{ github.event.pull_request.html_url }}
17
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10
18
runs-on : ubuntu-latest
11
- if : ${{ github.actor == 'dependabot[bot]' }}
19
+ if : github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
12
20
steps :
13
- - name : Dependabot metadata
21
+ - name : Fetch Dependabot metadata
14
22
id : metadata
15
23
uses : dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v2.3.0
16
24
with :
17
25
github-token : " ${{ secrets.GITHUB_TOKEN }}"
18
- - name : Enable auto-merge for Dependabot PRs
19
- run : gh pr merge --auto --merge "$PR_URL"
20
- env :
21
- PR_URL : ${{github.event.pull_request.html_url}}
22
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ - name : Enable auto-approve for Dependabot PRs
28
+ run : gh pr review --approve "${PR_URL}"
You can’t perform that action at this time.
0 commit comments