Skip to content

Commit 483b265

Browse files
authored
ci: Automate dependency updates (#37)
1 parent ac1fa20 commit 483b265

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/example-client"
5+
open-pull-requests-limit: 10
6+
schedule:
7+
interval: "daily"
8+
labels:
9+
- "dependencies"
10+
cooldown:
11+
default-days: 7
12+
ignore:
13+
- dependency-name: "@types/node"
14+
update-types: [ "version-update:semver-major" ]
15+
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
labels:
21+
- "dependencies"
22+
cooldown:
23+
default-days: 7

.github/workflows/check-api-spec.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ jobs:
2828
run: |
2929
pnpm install --frozen-lockfile
3030
pnpm run validate
31+
32+
automerge:
33+
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
34+
needs: validate
35+
runs-on: ubuntu-latest
36+
permissions:
37+
pull-requests: write
38+
contents: write
39+
steps:
40+
- uses: fastify/github-action-merge-dependabot@30c3f8f14a4f7b315ba38dbc1b793d27128fef82 # v3.12.0
41+
with:
42+
target: minor
43+
use-github-auto-merge: true
44+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)