summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-26 18:12:47 -0500
committerseth <[email protected]>2023-11-26 18:12:47 -0500
commitca8542009a52724de1bf1830f6dd949cc0183d47 (patch)
tree172336d184edf4cf498e170bfd8d2a5891f2dd10 /.github
parent73d44abf974a47a1ef1cc13a8ad5aa809237f0a7 (diff)
actions: auto merge dependabot prs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/autobot.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml
new file mode 100644
index 0000000..fb34f02
--- /dev/null
+++ b/.github/workflows/autobot.yaml
@@ -0,0 +1,26 @@
+name: Auto-merge Dependabot
+
+on: pull_request
+
+jobs:
+ automerge:
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+ pull-requests: write
+
+ 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' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
+ run: gh pr merge --auto --rebase "$PR"
+ env:
+ GH_TOKEN: ${{ github.token }}
+ PR: ${{ github.event.pull_request.html_url }}