mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 00:13:44 +00:00
Return alias condition to main
This commit is contained in:
parent
a29996aa9d
commit
18c62c8dd3
3 changed files with 22 additions and 21 deletions
|
@ -56,18 +56,6 @@ export async function getGo(
|
|||
}
|
||||
}
|
||||
|
||||
if (
|
||||
versionSpec === StableReleaseAlias.Stable ||
|
||||
versionSpec === StableReleaseAlias.OldStable
|
||||
) {
|
||||
versionSpec = await resolveStableVersionInput(
|
||||
versionSpec,
|
||||
auth,
|
||||
arch,
|
||||
manifest
|
||||
);
|
||||
}
|
||||
|
||||
// check cache
|
||||
let toolPath: string;
|
||||
toolPath = tc.find('go', versionSpec, arch);
|
||||
|
@ -354,7 +342,7 @@ export function parseGoVersionFile(versionFilePath: string): string {
|
|||
return contents.trim();
|
||||
}
|
||||
|
||||
async function resolveStableVersionInput(
|
||||
export async function resolveStableVersionInput(
|
||||
versionSpec: string,
|
||||
auth: string | undefined,
|
||||
arch = os.arch(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue