Skip to content

Commit 3ae34a1

Browse files
committed
chore: Upgrade checkout action to v4 and set up JDK 11 in CI workflow
1 parent 441ce56 commit 3ae34a1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/maven-deploy-cm.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ jobs:
3838
commit: ${{ steps.getCommit.outputs.commit }}
3939
steps:
4040
# Checkout this project into a sub folder
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v4
4242
with:
4343
path: archetype
44+
# Set up JDK 11
45+
- name: Set up JDK 11
46+
uses: actions/setup-java@v3
47+
with:
48+
distribution: temurin
49+
java-version: '11'
4450
# Set up dependency cache
4551
- name: Cache local Maven repository
4652
uses: actions/cache@v2
@@ -53,6 +59,7 @@ jobs:
5359
- name: Install archetype snapshot and store version in a variable
5460
run: |
5561
cd archetype
62+
mvn --version
5663
mvn clean install -Darchetype.test.skip
5764
echo "ARCHETYPE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
5865
echo "ARCHETYPE_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)