blob: ddc70d494ecdbcb8d4ae5dab6f9a172f2e226f72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'
run: gh pr merge --auto --rebase "$PR"
env:
GH_TOKEN: ${{ github.token }}
PR: ${{ github.event.pull_request.html_url }}
|