Skip to content

Commit

Permalink
Use a variable for the Java version in the build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
JohT committed Dec 25, 2024
1 parent 8f3fbb6 commit 85d418b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
env:
CI_COMMIT_CHANGELOG_MESSAGE: Update Changelog
CI_COMMIT_CHANGELOG_AUTHOR: ${{ github.event.repository.name }} Changelog Generator

JAVA_VERSION: 11
steps:
- name: (GIT) Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
fetch-depth: 0

- name: (Setup) Java Development Kit (JDK) 11
- name: (Setup) Java Development Kit (JDK) ${{env.JAVA_VERSION}}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 11
java-version: ${{env.JAVA_VERSION}}
cache: 'maven'

- name: (Maven) Build
Expand Down

0 comments on commit 85d418b

Please sign in to comment.