2023-04-25 07:23:20 +02:00
|
|
|
# https://docs.github.com/en/github-ae@latest/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
|
|
|
|
name: auto-merge
|
2023-04-05 16:15:01 +02:00
|
|
|
|
2023-02-24 11:20:27 +01:00
|
|
|
on:
|
2023-04-05 16:15:01 +02:00
|
|
|
# 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
|
2023-02-24 11:20:27 +01:00
|
|
|
pull_request_target:
|
|
|
|
|
|
|
|
jobs:
|
2023-04-25 07:23:20 +02:00
|
|
|
auto-merge:
|
2023-02-24 11:20:27 +01:00
|
|
|
name: Dependabot auto-merge
|
|
|
|
|
2024-05-20 22:47:38 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2023-02-24 11:20:27 +01:00
|
|
|
|
|
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
|
|
|
|
|
|
steps:
|
2023-04-25 07:23:20 +02:00
|
|
|
- name: Enable auto-merge
|
2023-04-05 16:15:01 +02:00
|
|
|
run: gh pr merge -R "${{ github.repository }}" --squash --auto "${{ github.event.pull_request.number }}"
|
|
|
|
env:
|
2023-04-25 07:23:20 +02:00
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|