Skip to content

Commit b888529

Browse files
authored
Update auto-merge.yml
1 parent ad417c3 commit b888529

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Dependabot auto-merge
2-
on: pull_request_target
2+
on: pull_request
33

44
permissions:
55
pull-requests: write
@@ -8,15 +8,15 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11-
if: ${{ github.actor == 'dependabot[bot]' }}
11+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ArcletProject/Alconna'
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v2.2.0
15+
uses: dependabot/fetch-metadata@v3
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Enable auto-merge for Dependabot PRs
1919
run: gh pr merge --auto --squash "$PR_URL"
2020
env:
2121
PR_URL: ${{github.event.pull_request.html_url}}
22-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)