mirror of
https://github.com/actions/setup-java.git
synced 2025-07-01 05:14:17 +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
|
@ -129,7 +129,7 @@ export abstract class JavaBase {
|
|||
stable = false;
|
||||
}
|
||||
|
||||
if (!semver.validRange(version)) {
|
||||
if (this.distribution !== 'jdkfile' && !semver.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`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue