Skip to content

Commit

Permalink
chore: Upgrade checkout action to v4 and set up JDK 11 in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bpauli committed Feb 20, 2025
1 parent 441ce56 commit 3ae34a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/maven-deploy-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ jobs:
commit: ${{ steps.getCommit.outputs.commit }}
steps:
# Checkout this project into a sub folder
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: archetype
# Set up JDK 11
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '11'
# Set up dependency cache
- name: Cache local Maven repository
uses: actions/cache@v2
Expand All @@ -53,6 +59,7 @@ jobs:
- name: Install archetype snapshot and store version in a variable
run: |
cd archetype
mvn --version
mvn clean install -Darchetype.test.skip
echo "ARCHETYPE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
echo "ARCHETYPE_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
Expand Down

0 comments on commit 3ae34a1

Please sign in to comment.