Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ on:
- synchronize
- ready_for_review

permissions:
contents: read

jobs:
enable:
name: Enable auto-merge
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: write
steps:
# This workflow intentionally does not check out or execute PR code.
- name: Check whether the author has write access
Expand All @@ -40,10 +40,7 @@ jobs:
github.event.pull_request.draft == false &&
steps.author-permission.outputs.can-push == 'true'
env:
# A fine-grained PAT or GitHub App token is required here. The built-in
# GITHUB_TOKEN cannot add PRs to a merge queue and can suppress
# downstream push-triggered workflows such as production deployment.
GH_TOKEN: ${{ secrets.AUTOMERGE_TOKEN }}
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
gh pr merge --auto --merge "$PR_URL"
Loading