mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
allow non-semver version for local distributions
This commit is contained in:
parent
8048bbee47
commit
7412c384a0
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -101850,7 +101850,7 @@ class JavaBase {
|
|||
version = version.replace('-ea.', '+');
|
||||
stable = false;
|
||||
}
|
||||
if (!semver_1.default.validRange(version)) {
|
||||
if (this.distribution !== 'jdkfile' && !semver_1.default.validRange(version)) {
|
||||
throw new Error(`The string '${version}' is not valid SemVer notation for a Java version. Please check README file for code snippets and more detailed information`);
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue