From ed37526ec1d4ac4c3d03d47f93e5096f6e025e4e Mon Sep 17 00:00:00 2001 From: Serubin Date: Fri, 22 Mar 2024 13:17:40 -0400 Subject: [PATCH] Add auto merge workflow --- .github/workflows/automerge.yaml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/automerge.yaml diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml new file mode 100644 index 0000000..7d62ba9 --- /dev/null +++ b/.github/workflows/automerge.yaml @@ -0,0 +1,35 @@ +name: automerge +on: + pull_request: + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} +jobs: + automerge: + runs-on: ubuntu-latest + if: ${{ github.event.label.name == 'renovate/automerge' }} + permissions: + contents: write + steps: + - id: automerge + name: automerge + uses: "pascalgn/automerge-action@v0.16.2" + env: + MERGE_LABELS: "renovate/automerge" + MERGE_METHOD: "squash" + MERGE_RETRIES: "15" + MERGE_RETRY_SLEEP: "10000" + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"