mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-23 01:59:55 +00:00
fix: Add check for non-semver version strings in cache check
This commit is contained in:
parent
0025b1c79d
commit
ab9802a423
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ export async function install_nextflow(
|
|||
}
|
||||
|
||||
export function check_cache(version: string): boolean {
|
||||
// A 'latest*' version indicates that a cached version would be invalid until
|
||||
// the version is resolved: abort
|
||||
if (version.includes("latest")) {
|
||||
return false
|
||||
}
|
||||
const cleaned_version = semver.clean(version, true)
|
||||
if (cleaned_version === null) {
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue