mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-26 05:56:13 +01:00

[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).
This commit is contained in:
Oliver Klee 2023-02-24 11:20:27 +01:00 committed by GitHub
parent d12d04a125
commit f89dcb0842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 16 deletions

17
.github/workflows/automerge.yml vendored Normal file
View file

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

View file

@ -251,19 +251,3 @@ jobs:
- typo3-version: "^12.2" - typo3-version: "^12.2"
php-version: "8.1" php-version: "8.1"
composer-dependencies: highest 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