mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 23:26:11 +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:
parent
70627ac2ca
commit
f1b4faa9eb
1 changed files with 8 additions and 4 deletions
12
.github/workflows/automerge.yml
vendored
12
.github/workflows/automerge.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue