File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Post-Check Actions
2
+ on : pull_request
2
3
3
- on :
4
- check_suite :
5
- types : [completed]
4
+ permissions :
5
+ contents : write
6
6
7
7
jobs :
8
- post_check_actions :
8
+ dependabot-merge :
9
9
runs-on : ubuntu-latest
10
- if : ${{ contains(github.event.pull_request.base.ref, 'feature/update_cli') && github.event.check_suite.conclusion == 'success' }}
10
+ if : ${{ contains(github.event.pull_request.base.ref, 'feature/update_cli') }}
11
11
steps :
12
- - uses : hmarr/auto-approve-action@v4
12
+ - name : Dependabot metadata
13
+ id : metadata
14
+ uses : dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
13
15
with :
14
- review-message : " Auto approved automated PR"
15
- github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
16
- pull-request-number : ${{ github.event.pull_request.number }}
16
+ github-token : " ${{ secrets.PERSONAL_ACCESS_TOKEN }}"
17
+ - name : Enable auto-merge for Dependabot PRs
18
+ env :
19
+ PR_URL : ${{github.event.pull_request.html_url}}
20
+ GITHUB_TOKEN : ${{secrets.PERSONAL_ACCESS_TOKEN }}
21
+ run : gh pr merge --auto --merge "$PR_URL"
22
+ - name : Auto approve dependabot PRs
23
+ uses : hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4
24
+ with :
25
+ github-token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments