From 72752334eed8c5c9c6faffbc952a227ad3d91418 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Tue, 3 Oct 2023 14:30:37 +0200 Subject: [PATCH] Create automerge.yml --- .github/workflows/automerge.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/automerge.yml diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 0000000000..a383155ce6 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,19 @@ +name: Dependabot auto-merge + +on: pull_request + +permissions: + contents: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --rebase "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + # GitHub provides this variable in the CI env. You don't + # need to add anything to the secrets vault. + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}