mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[Mac OS] Remove 'LTS' suffix from OpenJDK version (#8751)
This commit is contained in:
committed by
GitHub
parent
da0af62e91
commit
98c6d29ec9
@@ -40,6 +40,9 @@ installOpenJDK() {
|
||||
archivePath=$(echo ${asset} | jq -r '.binary.package.link')
|
||||
fullVersion=$(echo ${asset} | jq -r '.version.semver' | tr '+' '-')
|
||||
|
||||
# Remove 'LTS' suffix from the version if present
|
||||
fullVersion="${fullVersion//.LTS/}"
|
||||
|
||||
JAVA_TOOLCACHE_PATH=${AGENT_TOOLSDIRECTORY}/Java_Temurin-Hotspot_jdk
|
||||
javaToolcacheVersionPath=$JAVA_TOOLCACHE_PATH/${fullVersion}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user