diff options
| author | seth <[email protected]> | 2023-09-06 17:57:30 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-07 13:52:26 -0400 |
| commit | 870a4628ab1ac0be6d26214085c2a663c36d2568 (patch) | |
| tree | 52aa4e0087cac05571d570d0ea77e9428b06c810 /.github/workflows | |
| parent | a3417fada3c603ef5b3e0820d695b684661fb4d5 (diff) | |
actions: auto merge dependabot prs
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/autobot.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml new file mode 100644 index 0000000..0982f30 --- /dev/null +++ b/.github/workflows/autobot.yaml @@ -0,0 +1,24 @@ +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 }} |
