From 77b05d2df8007719349cf2e7a4057f67caf8d2b9 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 11 May 2021 11:07:56 -0400 Subject: [PATCH] Added .github/workflows/auto-merge.yml --- .github/workflows/auto-merge.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..245ec54 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,24 @@ +name: automerge +on: + check_suite: + types: + - rerequested + - completed + +jobs: + automerge: + runs-on: ubuntu-latest + if: | + github.actor == 'pre-commit-ci' || + github.actor == 'pre-commit-ci[bot]' || + github.actor == 'dependabot[bot]' || + github.actor == 'dependabot' + steps: + - name: automerge + uses: pascalgn/automerge-action@v0.13.1 + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + MERGE_METHOD: "rebase" + UPDATE_METHOD: "rebase" + MERGE_RETRIES: "6" + MERGE_RETRY_SLEEP: "10000"