From 3c86ccae938b12849d9bae050f66c37163aad73d Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Sep 2023 12:47:20 -0400 Subject: actions: auto-merge dependabot --- .github/workflows/autobot.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/autobot.yaml (limited to '.github') diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml new file mode 100644 index 0000000..cc1756c --- /dev/null +++ b/.github/workflows/autobot.yaml @@ -0,0 +1,25 @@ +name: auto-merge dependabot + +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + automerge: + runs-on: ubuntu-latest + + if: github.actor == 'dependabot[bot]' + steps: + - uses: dependabot/fetch-metadata@v1 + id: metadata + with: + github-token: ${{ github.token }} + + - name: enable auto-merge + if: steps.metadata.outputs.update-type == 'version-update:semver-patch' + run: gh pr merge --auto --rebase "$PR" + env: + PR: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ github.token }} -- cgit v1.2.3