File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Dependabot auto-merge
2
- on : pull_request
2
+ on : pull_request_target
3
3
4
4
permissions :
5
5
contents : write
@@ -8,17 +8,17 @@ permissions:
8
8
jobs :
9
9
dependabot :
10
10
runs-on : ubuntu-latest
11
- if : github.actor == 'dependabot[bot]'
11
+ if : ${{ github.actor == 'dependabot[bot]' }}
12
12
steps :
13
13
- name : Dependabot metadata
14
14
id : metadata
15
15
uses : dependabot/fetch-metadata@v2.1.0
16
16
with :
17
- github-token : ' ${{ secrets.GITHUB_TOKEN }}'
17
+ github-token : ' ${{ secrets.PAT }}'
18
18
19
19
- name : Enable auto-merge for Dependabot PRs
20
- if : steps.metadata.outputs.update-type != 'version-update:semver-major'
20
+ if : ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
21
21
run : gh pr merge --auto --squash "$PR_URL"
22
22
env :
23
23
PR_URL : ${{github.event.pull_request.html_url}}
24
- GH_TOKEN : ${{secrets.GITHUB_TOKEN }}
24
+ GITHUB_TOKEN : ${{secrets.PAT }}
You can’t perform that action at this time.
0 commit comments