1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-10 20:42:22 +02:00

Apply PR suggestions

This commit is contained in:
panticmilos 2022-11-21 17:11:36 +01:00
parent 317adaa2cb
commit 46c78a9b17
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -63637,7 +63637,7 @@ function resolveStableVersionInput(versionSpec, auth, arch = os_1.default.arch()
const versions = releases.map(release => `${semver.major(release.version)}.${semver.minor(release.version)}`);
const uniqueVersions = Array.from(new Set(versions));
core.info(`Oldstable version resolved as ${uniqueVersions[1]}`);
const oldstableVersion = yield installer.getInfoFromManifest(versionSpec, true, auth, arch, releases);
const oldstableVersion = yield installer.getInfoFromManifest(uniqueVersions[1], true, auth, arch, releases);
if (!oldstableVersion) {
return versionSpec;
}

View file

@ -182,7 +182,7 @@ async function resolveStableVersionInput(
core.info(`Oldstable version resolved as ${uniqueVersions[1]}`);
const oldstableVersion = await installer.getInfoFromManifest(
versionSpec,
uniqueVersions[1],
true,
auth,
arch,