Skip to content

Commit dd465e8

Browse files
committed
chore(deps): update set-java action everywhere
1 parent 0f2a78f commit dd465e8

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/master-snapshot-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
restore-keys: |
2424
${{ runner.os }}-maven-
2525
- name: Set up Java and Maven
26-
uses: actions/setup-java@v2.1.0
26+
uses: actions/setup-java@v2.2.0
2727
with:
2828
distribution: ${{ matrix.distribution }}
2929
java-version: ${{ matrix.java }}
@@ -43,9 +43,10 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v2
4545
- name: Set up Java and Maven
46-
uses: actions/setup-java@v1
46+
uses: actions/setup-java@v2.2.0
4747
with:
48-
java-version: 11
48+
distribution: ${{ matrix.distribution }}
49+
java-version: ${{ matrix.java }}
4950
- name: Release Maven package
5051
uses: samuelmeuli/action-maven-publish@v1
5152
with:

.github/workflows/pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
java: [11, 15]
15+
distribution: [ adopt, adopt-openj9 ]
1516
kubernetes: ['v1.17.13','v1.18.20','v1.19.14','v1.20.10','v1.21.4']
1617
steps:
1718
- uses: actions/checkout@v2
@@ -22,8 +23,9 @@ jobs:
2223
restore-keys: |
2324
${{ runner.os }}-maven-
2425
- name: Set up Java and Maven
25-
uses: actions/setup-java@v1
26+
uses: actions/setup-java@v2.2.0
2627
with:
28+
distribution: ${{ matrix.distribution }}
2729
java-version: ${{ matrix.java }}
2830
- name: Check code format
2931
run: mvn fmt:check --file pom.xml

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- name: Set up Java and Maven
11-
uses: actions/setup-java@v1
11+
uses: actions/setup-java@v2.2.0
1212
with:
1313
java-version: 11
14+
distribution: adopt
1415
- name: change version to release version
1516
# Assume that RELEASE_VERSION will have form like: "v1.0.1". So we cut the "v"
1617
run: mvn versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit
@@ -31,9 +32,10 @@ jobs:
3132
steps:
3233
- uses: actions/checkout@v2
3334
- name: Set up Java and Maven
34-
uses: actions/setup-java@v1
35+
uses: actions/setup-java@v2.2.0
3536
with:
3637
java-version: 11
38+
distribution: adopt
3739
- name: change version to release version
3840
run: |
3941
mvn versions:set -DnewVersion="${RELEASE_VERSION:1}" versions:commit

0 commit comments

Comments
 (0)