mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 01:16:12 +01:00

[TASK] Streamline the auto-merge GitHub Actions workflow (#817)

This commit is contained in:
Oliver Klee 2023-04-25 07:23:20 +02:00 committed by GitHub
parent 3c904397d3
commit 2186478f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
name: automerge
# https://docs.github.com/en/github-ae@latest/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
name: auto-merge
on:
# We're using pull_request_target instead of pull_request due to permission issues with the pull_request target:
@ -6,7 +7,7 @@ on:
pull_request_target:
jobs:
automerge:
auto-merge:
name: Dependabot auto-merge
runs-on: ubuntu-22.04
@ -14,8 +15,7 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable automerge
shell: bash
- name: Enable auto-merge
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}