diff options
| author | seth <[email protected]> | 2024-01-19 22:17:31 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-20 05:56:19 -0500 |
| commit | 290a84e86b2f2c3cb1403f94eff416e74d536abd (patch) | |
| tree | ea3a3138e6949905c2a4e60e8e5905d3f6412867 /.github/workflows/autobot.yaml | |
initial commit
Diffstat (limited to '.github/workflows/autobot.yaml')
| -rw-r--r-- | .github/workflows/autobot.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml new file mode 100644 index 0000000..e0e4ccf --- /dev/null +++ b/.github/workflows/autobot.yaml @@ -0,0 +1,27 @@ +name: Auto-merge Dependabot + +on: pull_request + +jobs: + automerge: + name: Check and merge PR + 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 }} |
