Auto-merge #8512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uses https://github.com/pascalgn/automerge-action and https://github.com/actions/labeler | |
name: Auto-merge | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
check_suite: | |
types: [ completed ] | |
permissions: write-all | |
jobs: | |
autolabel: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Auto-label | |
uses: actions/labeler@v4 | |
with: | |
repo-token: ${{ secrets.AUTOMERGE_PAT }} | |
automerge: | |
needs: autolabel | |
runs-on: ubuntu-latest | |
steps: | |
- name: Auto-merge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.AUTOMERGE_PAT }} | |
MERGE_LABELS: "automerge,!work in progress,!ready for review" | |
MERGE_REMOVE_LABELS: "automerge" | |
LOG: DEBUG | |
MERGE_RETRIES: 10 | |
MERGE_RETRY_SLEEP: 60000 |