mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 10:36:12 +01:00
tea/.github/workflows/auto-merge.yml

22 lines
790 B
YAML
Raw Normal View History

# 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:
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
pull_request_target:
jobs:
auto-merge:
name: Dependabot auto-merge
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}