Skip to content

Commit 40ec910

Browse files
authored
Merge pull request #4 from ether/chore/onboard-dependabot
chore: onboard Dependabot + automerge workflow
2 parents d7c4de5 + d120f23 commit 40ec910

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"
11+
versioning-strategy: "increase"

.github/workflows/automerge.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Dependabot Automerge
2+
permissions:
3+
contents: write
4+
pull-requests: write
5+
on:
6+
workflow_run:
7+
workflows:
8+
- Node.js Package
9+
types:
10+
- completed
11+
12+
jobs:
13+
automerge:
14+
if: >
15+
github.event.workflow_run.conclusion == 'success' &&
16+
github.event.workflow_run.event == 'push' &&
17+
github.event.workflow_run.actor.login == 'dependabot[bot]'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
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"
30+

0 commit comments

Comments
 (0)