Changes for README.md: 1 added line, 1 removed line.
Original line number
Diff line number
Diff line
@@ -31,7 +31,7 @@ This action allows you to work with Java and Scala projects.
-`java-package`: The packaging variant of the choosen distribution. Possible values: `jdk`, `jre`, `jdk+fx`, `jre+fx`. Default value: `jdk`.
-`architecture`: The target architecture of the package. Possible values: `x86`, `x64`, `armv7`, `aarch64`, `ppc64le`. Default value: `x64`.
-`architecture`: The target architecture of the package. Possible values: `x86`, `x64`, `armv7`, `aarch64`, `ppc64le`. Default value: Derived from the runner machine.
-`jdkFile`: If a use-case requires a custom distribution setup-java uses the compressed JDK from the location pointed by this input and will take care of the installation and caching on the VM.
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.';
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
Changes for dist/cleanup/index.js: 5 added lines, 6 removed lines.
Original line number
Diff line number
Diff line
@@ -68708,17 +68708,16 @@ function isGhes() {
}
exports.isGhes = isGhes;
function isCacheFeatureAvailable() {
if (!cache.isFeatureAvailable()) {
if (cache.isFeatureAvailable()) {
return true;
}
if (isGhes()) {
throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
core.warning('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
return false;
}
else {
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Changes for dist/setup/index.js: 5 added lines, 6 removed lines.
Original line number
Diff line number
Diff line
@@ -105436,17 +105436,16 @@ function isGhes() {
}
exports.isGhes = isGhes;
function isCacheFeatureAvailable() {
if (!cache.isFeatureAvailable()) {
if (cache.isFeatureAvailable()) {
return true;
}
if (isGhes()) {
throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
core.warning('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
return false;
}
else {
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Changes for src/util.ts: 7 added lines, 7 removed lines.
Original line number
Diff line number
Diff line
@@ -85,19 +85,19 @@ export function isGhes(): boolean {
}
exportfunctionisCacheFeatureAvailable():boolean{
if (!cache.isFeatureAvailable()){
if (cache.isFeatureAvailable()){
returntrue;
}
if (isGhes()){
thrownewError(
core.warning(
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
);
}else{
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
}
returnfalse;
}
returntrue;
core.warning('The runner was not able to contact the cache service. Caching will be skipped');