summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-07 12:47:20 -0400
committerseth <[email protected]>2023-09-07 13:13:55 -0400
commit3c86ccae938b12849d9bae050f66c37163aad73d (patch)
treeacc4878d1163797c71d750ced7104f775b26c366
parent01e43f62d1ee6b4f4b6b912d0bb5977ee43d059c (diff)
actions: auto-merge dependabot
-rw-r--r--.github/workflows/autobot.yaml25
1 files changed, 25 insertions, 0 deletions
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 }}