Skip to content

Commit f81c4b0

Browse files
committed
Specify JDK version when building, add Maven cache
1 parent 03a6143 commit f81c4b0

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/create_release.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
name: Create Release
3636
runs-on: ubuntu-latest
3737
steps:
38-
- name: Setup Java SDK
39-
uses: actions/[email protected]
40-
with:
41-
java-version: 11
42-
4338
- name: Checkout code
4439
uses: actions/checkout@v2
4540
with:
@@ -59,6 +54,13 @@ jobs:
5954
echo "Will use version ${version}"
6055
echo "version=${version}" >> $GITHUB_ENV
6156
57+
- name: Set up JDK 8
58+
uses: actions/setup-java@v4
59+
with:
60+
distribution: 'adopt'
61+
java-version: 8
62+
cache: maven
63+
6264
- name: Build
6365
run: |
6466
mvn -f kcbq-connector clean package assembly:single@release-artifacts -DskipTests

.github/workflows/release_pr_workflow.yml

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ jobs:
5858
ref: master
5959
fetch-depth: 0
6060

61+
- name: Set up JDK 8
62+
uses: actions/setup-java@v4
63+
with:
64+
distribution: 'adopt'
65+
java-version: 8
66+
cache: maven
67+
6168
- name: Create release commits
6269
run: |
6370
git config --local user.name "GitHub Action"

0 commit comments

Comments
 (0)