Skip to content

Commit ac9c77a

Browse files
committed
Update github actions
* checkout action: update to v6 * java action: update to v5, and update java version to 17 * maven-settings-xml-action: update to v22 * add dependabot
1 parent 0e4157b commit ac9c77a

4 files changed

Lines changed: 38 additions & 16 deletions

File tree

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
version: 2
6+
updates:
7+
- package-ecosystem: "maven" # See documentation for possible values
8+
directory: "/" # Location of package manifests
9+
schedule:
10+
interval: "weekly"
11+
ignore:
12+
- dependency-name: "*"
13+
update-types: ["version-update:semver-major"]
14+
15+
- package-ecosystem: "github-actions" # Also update Github actions
16+
directory: "/"
17+
schedule:
18+
# Check for updates to GitHub Actions every week
19+
interval: "weekly"

.github/workflows/merge-build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
name: Merge / Push Build
2121

22-
on: [push]
22+
on:
23+
push:
24+
branches:
25+
- 'main'
2326

2427
jobs:
2528
publish-snapshot:
@@ -35,17 +38,17 @@ jobs:
3538
MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m"
3639

3740
steps:
38-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v6
3942

4043
- name: Set up JDK
41-
uses: actions/setup-java@v3
44+
uses: actions/setup-java@v5
4245
with:
4346
distribution: 'temurin'
4447
architecture: x64
45-
java-version: 11
48+
java-version: 17
4649

4750
- name: maven-settings-xml-action
48-
uses: whelk-io/maven-settings-xml-action@v14
51+
uses: whelk-io/maven-settings-xml-action@v22
4952
with:
5053
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
5154

@@ -58,7 +61,7 @@ jobs:
5861
run: mvn -B -e clean install
5962

6063
- name: Checkout tools repo
61-
uses: actions/checkout@v4
64+
uses: actions/checkout@v6
6265
with:
6366
repository: Commonjava/commonjava-images
6467
path: commonjava-images

.github/workflows/pr-build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ jobs:
2727
runs-on: ubuntu-latest
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v6
3131

3232
- name: Set up JDK
33-
uses: actions/setup-java@v2
33+
uses: actions/setup-java@v5
3434
with:
35-
java-version: '11'
36-
distribution: 'adopt'
35+
distribution: 'temurin'
36+
architecture: x64
37+
java-version: 17
3738

3839
- name: maven-settings-xml-action
39-
uses: whelk-io/maven-settings-xml-action@v14
40+
uses: whelk-io/maven-settings-xml-action@v22
4041
with:
4142
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
4243

.github/workflows/unittests.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ on:
2222
push:
2323
branches:
2424
- main
25-
- release_*
2625

2726
jobs:
2827
test:
@@ -32,20 +31,20 @@ jobs:
3231
strategy:
3332
fail-fast: false
3433
matrix:
35-
jdk-version: [ "11", "19" ]
34+
jdk-version: [ "17", "21" ]
3635

3736
steps:
3837
- name: 🧺 Checkout Repository Code
39-
uses: actions/checkout@v3
38+
uses: actions/checkout@v6
4039
- name: 🛠 Set up JDK ${{ matrix.jdk-version }}
41-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v5
4241
with:
4342
java-version: ${{ matrix.jdk-version }}
4443
distribution: 'temurin'
4544
cache: maven
4645

4746
- name: maven-settings-xml-action
48-
uses: whelk-io/maven-settings-xml-action@v14
47+
uses: whelk-io/maven-settings-xml-action@v22
4948
with:
5049
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
5150

0 commit comments

Comments
 (0)