fix: set version when not using latest
This commit is contained in:
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
@@ -28310,6 +28310,9 @@ async function download(version) {
|
||||
if (version == '') {
|
||||
ver = await getLatestVersion();
|
||||
}
|
||||
else {
|
||||
ver = version;
|
||||
}
|
||||
const url = `https://ziglang.org/download/${ver}/zig-${platform}-${architecture}-${ver}.${extension}`;
|
||||
core.info(`Downloading Zig ${version} (${platform}, ${architecture}) from ${url} ...`);
|
||||
const archivePath = await tc.downloadTool(url);
|
||||
|
||||
Reference in New Issue
Block a user