From 90bed57f1c4cbf6ea2c006f5fe36259136fbbf68 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 26 Oct 2024 12:04:41 +0200 Subject: [PATCH] feat(clustertool): add auto-merge PR workflow --- .../DOTREPLACEgithub/workflows/automerge.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 clustertool/embed/generic/root/DOTREPLACEgithub/workflows/automerge.yaml diff --git a/clustertool/embed/generic/root/DOTREPLACEgithub/workflows/automerge.yaml b/clustertool/embed/generic/root/DOTREPLACEgithub/workflows/automerge.yaml new file mode 100644 index 00000000000..6421c10c6f9 --- /dev/null +++ b/clustertool/embed/generic/root/DOTREPLACEgithub/workflows/automerge.yaml @@ -0,0 +1,22 @@ +name: Automerge and Approve + +on: + workflow_run: + workflows: ["Pull Request: Validate"] # Name of the main CI workflow + types: + - completed + +jobs: + automerge: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - id: automerge + name: automerge + uses: "pascalgn/automerge-action@v0.16.4" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + UPDATE_RETRIES: 24 + UPDATE_RETRY_SLEEP: 60000