mirror of
https://github.com/actions/setup-java.git
synced 2025-05-23 02:51:46 +00:00
change warning to error
This commit is contained in:
parent
af683f3474
commit
f185ccd3ba
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -13890,8 +13890,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
|||||||
throw new Error('Early access versions are not supported');
|
throw new Error('Early access versions are not supported');
|
||||||
}
|
}
|
||||||
if (this.packageType !== 'jdk') {
|
if (this.packageType !== 'jdk') {
|
||||||
this.packageType = 'jdk';
|
throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type');
|
||||||
core.warning('Microsoft Build of OpenJDK always uses the `jdk` package type. Remove the `java-package` argument when calling the action to silence this warning.');
|
|
||||||
}
|
}
|
||||||
const availableVersionsRaw = yield this.getAvailableVersions();
|
const availableVersionsRaw = yield this.getAvailableVersions();
|
||||||
const opts = this.getPlatformOption();
|
const opts = this.getPlatformOption();
|
||||||
|
@ -46,10 +46,7 @@ export class MicrosoftDistributions extends JavaBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.packageType !== 'jdk') {
|
if (this.packageType !== 'jdk') {
|
||||||
this.packageType = 'jdk';
|
throw new Error('Microsoft Build of OpenJDK provides only the `jdk` package type');
|
||||||
core.warning(
|
|
||||||
'Microsoft Build of OpenJDK always uses the `jdk` package type. Remove the `java-package` argument when calling the action to silence this warning.'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const availableVersionsRaw = await this.getAvailableVersions();
|
const availableVersionsRaw = await this.getAvailableVersions();
|
||||||
|
Loading…
Reference in New Issue
Block a user