Added .github/workflows/auto-merge.yml

This commit is contained in:
Tonye Jack 2021-05-11 11:07:56 -04:00
parent 92c378b826
commit 77b05d2df8

24
.github/workflows/auto-merge.yml vendored Normal file
View File

@ -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"