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:
parent
317adaa2cb
commit
46c78a9b17
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue