From f89dcb0842f79f74b795b56490cba459a9181101 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 24 Feb 2023 11:20:27 +0100 Subject: [PATCH] [TASK] Switch to using GitHub's own automerge feature (#758) Our current automerging CI task does not work reliably. So instead of using a GitHub Action that does the automerging itself, we are now using a GitHub Action that only triggers GitHub's own automerge feature (which works a lot more reliably). --- .github/workflows/automerge.yml | 17 +++++++++++++++++ .github/workflows/ci.yml | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/automerge.yml diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 0000000..66deb61 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,17 @@ +name: automerge +on: + pull_request_target: + +jobs: + automerge: + name: Dependabot auto-merge + + runs-on: ubuntu-22.04 + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: peter-evans/enable-pull-request-automerge@v2 + with: + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c9e7f..aea6c73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -251,19 +251,3 @@ jobs: - typo3-version: "^12.2" php-version: "8.1" composer-dependencies: highest - automerge: - name: Dependabot auto-merge - runs-on: ubuntu-22.04 - needs: [ php-lint, code-quality, code-quality-frontend, unit-tests, functional-tests ] - if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' }} - steps: - - name: automerge - uses: pascalgn/automerge-action@v0.15.6 - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - MERGE_ERROR_FAIL: true - MERGE_LABELS: "dependencies,!blocked,!wip" - MERGE_METHOD: "rebase" - MERGE_READY_STATE: "clean,unstable" - MERGE_RETRIES: 0 -