File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ jobs:
75
75
76
76
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#approve-a-pull-request
77
77
- name : Enable auto-merge for safe bots PRs
78
- if : contains(fromJson('["dependabot[bot]", "pre-commit-ci[bot]"]'), github.actor)
78
+ if : env.BOT_PAT != null && contains(fromJson('["dependabot[bot]", "pre-commit-ci[bot]"]'), github.actor)
79
79
run : gh pr merge --auto --squash "$PR_URL"
80
80
env :
81
- PR_URL : ${{github.event.pull_request.html_url}}
82
- GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
81
+ PR_URL : ${{ github.event.pull_request.html_url }}
82
+ GH_TOKEN : ${{ secrets.BOT_PAT || secrets. GITHUB_TOKEN }}
83
83
84
84
- name : Approve a PR
85
- if : contains(fromJson('["dependabot[bot]", "pre-commit-ci[bot]"]'), github.actor)
85
+ if : env.BOT_PAT != null && contains(fromJson('["dependabot[bot]", "pre-commit-ci[bot]"]'), github.actor)
86
86
run : gh pr review --approve "$PR_URL"
87
87
env :
88
88
PR_URL : ${{github.event.pull_request.html_url}}
89
- GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
89
+ GH_TOKEN : ${{ secrets.BOT_PAT || secrets. GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments