From 602f5c818ab68576839483556311bd0e6f0d46a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 21 Feb 2022 23:14:03 +0200 Subject: [PATCH] Add Dependabot Auto-Merge workflow (Github Workflows) --- .github/workflows/dependabot_auto-merge.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/dependabot_auto-merge.yml diff --git a/.github/workflows/dependabot_auto-merge.yml b/.github/workflows/dependabot_auto-merge.yml new file mode 100644 index 0000000..54cf176 --- /dev/null +++ b/.github/workflows/dependabot_auto-merge.yml @@ -0,0 +1,22 @@ +name: Dependabot Auto-Merge +on: pull_request + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1.1.1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}