mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
docker/install: Handle missing v
prefix when searching GH release
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
10424facaf
commit
b8a96071a8
@ -594,7 +594,10 @@ EOF`,
|
||||
}
|
||||
const releases = <Record<string, GitHubRelease>>JSON.parse(body);
|
||||
if (!releases[version]) {
|
||||
throw new Error(`Cannot find Docker release ${version} in ${url}`);
|
||||
if (!releases['v' + version]) {
|
||||
throw new Error(`Cannot find Docker release ${version} in ${url}`);
|
||||
}
|
||||
return releases['v' + version];
|
||||
}
|
||||
return releases[version];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user