automerge #9381
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
name: automerge | |
on: | |
workflow_dispatch: | |
inputs: | |
prNumber: | |
description: 'PR Number to auto merge' | |
type: number | |
required: true | |
jobs: | |
automerge: | |
runs-on: ubuntu-20.04 | |
permissions: | |
# Need to read check suites. | |
checks: read | |
# Need to merge the pull request | |
# Specifically "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge" | |
contents: write | |
steps: | |
- name: automerge | |
uses: "pascalgn/[email protected]" | |
# https://github.com/pascalgn/automerge-action#configuration | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
MERGE_LABELS: "!do not merge yet,!interop" | |
MERGE_FORKS: false | |
MERGE_METHOD: "rebase" | |
MERGE_RETRIES: "3" | |
MERGE_RETRY_SLEEP: "90000" | |
PULL_REQUEST: ${{ inputs.prNumber }} |