File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 11name : Auto Approve
2- on : [push, pull_request_target]
2+ on : pull_request
3+
4+ permissions :
5+ pull-requests : write
36
47jobs :
58 auto-approve :
6- if : github.event_name == 'pull_request_target'
79 runs-on : ubuntu-latest
10+ if : github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
11+ timeout-minutes : 1
812
913 steps :
10- - name : Approve Dependabot PR
11- if : github.actor == 'dependabot[bot]'
12- run : gh pr review --approve $PR_URL
14+ - name : Approve PR
15+ run : gh pr review --approve ${{ github.event.pull_request.html_url }}
1316 env :
14- PR_URL : ${{ github.event.pull_request.html_url }}
1517 GH_TOKEN : ${{ github.token }} # or `GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}`
1618
1719 # https://github.com/hmarr/auto-approve-action
1820 - name : Auto Approve
1921 uses : hmarr/auto-approve-action@v4
20- if : github.actor == 'dependabot[bot]'
2122 with :
2223 github-token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments