mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 23:56:13 +02: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: on:
# We're using pull_request_target instead of pull_request due to permission issues with the pull_request target: # 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: pull_request_target:
jobs: jobs:
automerge: auto-merge:
name: Dependabot auto-merge name: Dependabot auto-merge
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -14,8 +15,7 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }} if: ${{ github.actor == 'dependabot[bot]' }}
steps: steps:
- name: Enable automerge - name: Enable auto-merge
shell: bash
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}" run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}