fix: set version when not using latest
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 47s
Continuous Integration / TypeScript Tests (push) Successful in 56s
Continuous Integration / GitHub Actions Test (push) Failing after 20s

This commit is contained in:
2024-12-28 12:28:05 +13:00
parent 9168ecec34
commit 042eb7b9f9
4 changed files with 7 additions and 2 deletions

3
dist/index.js generated vendored
View File

@@ -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);