Skip to content

Commit e01160e

Browse files
committed
PI-2496 Enable Dependabot
1 parent fa4d817 commit e01160e

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/dependabot.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
minor:
9+
update-types:
10+
- "minor"
11+
- "patch"
12+
patterns:
13+
- "*"
14+
15+
- package-ecosystem: "github-actions"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
groups:
20+
minor:
21+
update-types:
22+
- "minor"
23+
- "patch"
24+
patterns:
25+
- "*"

.github/workflows/dependabot.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Automated management of Dependabot PRs
2+
name: Dependabot
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
if: github.actor == 'dependabot[bot]'
13+
steps:
14+
- uses: actions/create-github-app-token@v1
15+
id: app-token
16+
with:
17+
app-id: ${{ secrets.BOT_APP_ID }}
18+
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
19+
20+
- uses: ministryofjustice/hmpps-probation-integration-services/.github/actions/dependabot-automerge@main
21+
with:
22+
token: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)