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

[TASK] Use the GitHub command line tool for automerges (#793)

This way, we do not need to rely on a 3rd-party GitHub action for this
anymore.
This commit is contained in:
Oliver Klee 2023-04-05 16:15:01 +02:00 committed by GitHub
parent 70627ac2ca
commit f1b4faa9eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
name: automerge
on:
# We're using pull_request_target instead of pull_request due to permission issues with the pull_request target:
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
pull_request_target:
jobs:
@ -11,7 +14,8 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ github.event.pull_request.number }}
merge-method: squash
- name: Enable automerge
shell: bash
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}