diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 000000000000..7dd1adb053b6 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,22 @@ +name: automerge # https://github.com/pascalgn/automerge-action +on: + pull_request: + check_suite: + types: + - completed +jobs: + automerge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'secretariat-bot' }} + permissions: + contents: write + pull-requests: write + steps: + - id: automerge + name: automerge + uses: "pascalgn/automerge-action@v0.16.4" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + MERGE_METHOD: "squash" + MERGE_FORKS: "false" + MERGE_FILTER_AUTHOR: "secretariat-bot"