Skip to content

Commit 1347cac

Browse files
💚 remove prt (#138)
1 parent 468f584 commit 1347cac

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/auto-merge.yml

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

44
permissions:
5-
pull-requests: write
65
contents: write
6+
pull-requests: write
77

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 == 'nonebot/plugin-alconna'
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v3.0.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)