Skip to content

Commit cd5544c

Browse files
Add dependabot config and snapshot workflow
1 parent b546a1a commit cd5544c

4 files changed

Lines changed: 48 additions & 6 deletions

File tree

.github/dependabot.yml

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

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
1014
concurrency:
1115
group: ${{ github.workflow }}-${{ github.ref }}
1216
cancel-in-progress: true
@@ -16,8 +20,6 @@ jobs:
1620
runs-on: ubuntu-latest
1721
steps:
1822
- uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0
2123

2224
- uses: actions/setup-java@v5
2325
with:
@@ -35,7 +37,4 @@ jobs:
3537
with:
3638
report_paths: '**/test-results/*/*.xml'
3739

38-
- run: ./gradlew publish
39-
env:
40-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
41-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
40+
- uses: allegro-actions/dependabot-automerge@v1

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
env:
1010
JRELEASER_GITHUB_TOKEN: ${{ github.token }}
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
release:
1418
runs-on: ubuntu-latest

.github/workflows/snapshot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Snapshot
2+
3+
on: workflow_dispatch
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
snapshot:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-java@v5
18+
with:
19+
java-version: 21
20+
distribution: temurin
21+
22+
- uses: gradle/actions/setup-gradle@v5
23+
24+
- run: ./gradlew publish
25+
env:
26+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
27+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)