Refine isGhes logic (#697)
Some checks failed
Licensed / Licensed (push) Has been cancelled
Validate cache / maven-save (ubuntu-latest) (push) Has been cancelled
Validate cache / maven-save (windows-latest) (push) Has been cancelled
Validate local file / Validate installation from local file Adopt (push) Has been cancelled
Validate local file / Validate installation from local file Zulu (push) Has been cancelled
Validate local file / Validate installation from local file Eclipse Temurin (push) Has been cancelled
Validate Java e2e / zulu 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-save (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-save (ubuntu-latest) (push) Has been cancelled
Validate cache / maven-save (macos-13) (push) Has been cancelled
Basic validation / Basic validation (push) Has been cancelled
Check dist/ / Check dist/ (push) Has been cancelled
CodeQL analysis / CodeQL analysis (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-save (windows-latest) (push) Has been cancelled
Validate Java e2e / adopt 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate cache / gradle-save (ubuntu-latest) (push) Has been cancelled
Validate cache / gradle-save (windows-latest) (push) Has been cancelled
Validate cache / sbt-save (macos-13) (push) Has been cancelled
Validate cache / sbt-save (ubuntu-latest) (push) Has been cancelled
Validate cache / sbt-save (windows-latest) (push) Has been cancelled
Validate publishing functionality / Validate settings.xml (push) Has been cancelled
Validate publishing functionality / settings.xml is overwritten if flag is true (push) Has been cancelled
Validate publishing functionality / settings.xml is not overwritten if flag is false (push) Has been cancelled
Validate publishing functionality / settings.xml in custom location (push) Has been cancelled
Validate Java e2e / adopt 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate cache / gradle-save (macos-13) (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / graalvm 17.0.12 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / graalvm 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / graalvm 24-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / graalvm 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / liberica 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / liberica 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt-openj9 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt-openj9 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / adopt-openj9 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / corretto 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / microsoft 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / microsoft 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / microsoft 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / microsoft 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / microsoft 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / oracle 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / oracle 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / oracle 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / sapmachine 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / sapmachine 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / sapmachine 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / semeru 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / semeru 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / semeru 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / semeru 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / temurin 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / temurin 21 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / temurin 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / zulu 17 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 version from file X.Y.Z - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X.Y.Z - ubuntu-latest (push) Has been cancelled
Validate Java e2e / semeru 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / semeru 11 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 21 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 21 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / corretto version (should be from input) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft version (should be from input) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / microsoft version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin version (should be from input) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin version (should be from input) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin version (should be from input) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / corretto version from file X - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / liberica version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / liberica version from file X - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / microsoft version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / microsoft version from file X - ubuntu-latest (push) Has been cancelled
Validate Java e2e / microsoft version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / temurin version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / temurin version from file X - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X - windows-latest (push) Has been cancelled
Validate Java e2e / adopt version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / adopt version from file X.Y.Z - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / adopt-openj9 version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X.Y.Z - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file 'openjdk64-17.0.10' - windows-latest (push) Has been cancelled
Validate cache / maven-restore (macos-13) (push) Has been cancelled
Validate cache / sbt-restore (windows-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (ubuntu-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle1-restore (windows-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (macos-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (ubuntu-latest) (push) Has been cancelled
Validate cache with cache-dependency-path option / gradle2-restore (windows-latest) (push) Has been cancelled
Validate cache / gradle-restore (macos-13) (push) Has been cancelled
Validate cache / gradle-restore (ubuntu-latest) (push) Has been cancelled
Validate cache / gradle-restore (windows-latest) (push) Has been cancelled
Validate cache / maven-restore (ubuntu-latest) (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 21.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file X.Y.Z - windows-latest (push) Has been cancelled
Validate Java e2e / adopt version from file 'openjdk64-17.0.10' - macos-latest (push) Has been cancelled
Validate Java e2e / adopt version from file 'openjdk64-17.0.10' - ubuntu-latest (push) Has been cancelled
Validate Java e2e / adopt version from file 'openjdk64-17.0.10' - windows-latest (push) Has been cancelled
Validate Java e2e / liberica version from file 'openjdk64-17.0.10' - macos-latest (push) Has been cancelled
Validate Java e2e / liberica version from file 'openjdk64-17.0.10' - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica version from file 'openjdk64-17.0.10' - windows-latest (push) Has been cancelled
Validate Java e2e / zulu version from file 'openjdk64-17.0.10' - macos-latest (push) Has been cancelled
Validate Java e2e / zulu version from file 'openjdk64-17.0.10' - ubuntu-latest (push) Has been cancelled
Validate cache / maven-restore (windows-latest) (push) Has been cancelled
Validate cache / sbt-restore (macos-13) (push) Has been cancelled
Validate cache / sbt-restore (ubuntu-latest) (push) Has been cancelled
Validate Java e2e / dragonwell 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / dragonwell 11.0.13+9 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / graalvm 21.0.4 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 21.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 21.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / oracle 21.0.4 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17.0.7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 21.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 21.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 21.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 21.0 (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 21.0 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 11.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0.7+7 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 21.0 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 21-ea (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine - check-latest flag - macos-latest (push) Has been cancelled
Validate Java e2e / sapmachine - check-latest flag - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine - check-latest flag - windows-latest (push) Has been cancelled
Validate Java e2e / dragonwell - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / sapmachine - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / temurin - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - macos-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu - multiple jdks - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 15.0.0-ea.14 (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 17-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17-ea (jdk-x64) - macos-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 21-ea (jdk-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 21-ea (jdk-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / corretto 8 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 21 (jdk+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jre+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17.0 (jre-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / sapmachine 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / sapmachine 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / semeru 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / temurin 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 21.0 (jdk+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 21 (jre+fx-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - macos-13 (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 17.0 (jre-x64) - windows-latest (push) Has been cancelled
Validate Java e2e / corretto 11 (jdk-) - windows-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / liberica 11 (jdk-) - windows-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-) - ubuntu-latest (push) Has been cancelled
Validate Java e2e / zulu 11 (jdk-) - windows-latest (push) Has been cancelled

This commit is contained in:
John Wesley Walker III 2024-10-21 19:57:52 +02:00 committed by GitHub
parent 870c199c48
commit 8df1039502
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 4 deletions

View file

@ -3,7 +3,8 @@ import * as core from '@actions/core';
import {
convertVersionToSemver,
isVersionSatisfies,
isCacheFeatureAvailable
isCacheFeatureAvailable,
isGhes
} from '../src/util';
jest.mock('@actions/cache');
@ -80,3 +81,41 @@ describe('convertVersionToSemver', () => {
expect(actual).toBe(expected);
});
});
describe('isGhes', () => {
const pristineEnv = process.env;
beforeEach(() => {
jest.resetModules();
process.env = {...pristineEnv};
});
afterAll(() => {
process.env = pristineEnv;
});
it('returns false when the GITHUB_SERVER_URL environment variable is not defined', async () => {
delete process.env['GITHUB_SERVER_URL'];
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable is set to github.com', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://github.com';
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable is set to a GitHub Enterprise Cloud-style URL', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://contoso.ghe.com';
expect(isGhes()).toBeFalsy();
});
it('returns false when the GITHUB_SERVER_URL environment variable has a .localhost suffix', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://mock-github.localhost';
expect(isGhes()).toBeFalsy();
});
it('returns true when the GITHUB_SERVER_URL environment variable is set to some other URL', async () => {
process.env['GITHUB_SERVER_URL'] = 'https://src.onpremise.fabrikam.com';
expect(isGhes()).toBeTruthy();
});
});

View file

@ -88552,7 +88552,11 @@ function isJobStatusSuccess() {
exports.isJobStatusSuccess = isJobStatusSuccess;
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
}
exports.isGhes = isGhes;
function isCacheFeatureAvailable() {

6
dist/setup/index.js vendored
View file

@ -126328,7 +126328,11 @@ function isJobStatusSuccess() {
exports.isJobStatusSuccess = isJobStatusSuccess;
function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
}
exports.isGhes = isGhes;
function isCacheFeatureAvailable() {

View file

@ -92,7 +92,13 @@ export function isGhes(): boolean {
const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
);
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
const hostname = ghUrl.hostname.trimEnd().toUpperCase();
const isGitHubHost = hostname === 'GITHUB.COM';
const isGitHubEnterpriseCloudHost = hostname.endsWith('.GHE.COM');
const isLocalHost = hostname.endsWith('.LOCALHOST');
return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost;
}
export function isCacheFeatureAvailable(): boolean {