diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index d05b8eee8..a8fe3c969 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/github-script@v7 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{secrets.DEPENDABOT_AUTO_MERGE}} script: | github.rest.issues.createComment({ issue_number: context.issue.number, @@ -20,10 +20,3 @@ jobs: repo: context.repo.repo, body: '@dependabot merge' }) - - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} -