Skip to content

Commit ef28320

Browse files
authored
chore: add automerge pipeline (#923)
* chore: add automerge pipeline * chore: only automerge run if completed
1 parent 88b5c5b commit ef28320

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/automerge.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Dependabot Automerge
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
on:
6+
workflow_run:
7+
workflows:
8+
- CI
9+
types:
10+
- completed
11+
12+
jobs:
13+
automerge:
14+
if: >
15+
github.event.workflow_run.conclusion == 'success' &&
16+
github.event.workflow_run.event == 'pull_request' &&
17+
github.event.workflow_run.actor.login == 'dependabot[bot]'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Automerge
24+
uses: "pascalgn/automerge-action@v0.16.4"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
MERGE_METHOD: squash
28+
MERGE_LABELS: ""
29+
MERGE_RETRY_SLEEP: "100000"

0 commit comments

Comments
 (0)