Skip to content

Commit

Permalink
Use user secret for automerge (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon authored Nov 5, 2024
1 parent f196b49 commit 3373f2d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ 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,
owner: context.repo.owner,
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}}

0 comments on commit 3373f2d

Please sign in to comment.