mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 00:13:44 +00:00
Add stable and oldstable aliases
This commit is contained in:
parent
e983b65a44
commit
546aac70e3
6 changed files with 1419 additions and 2042 deletions
|
@ -114,7 +114,7 @@ export async function getGo(
|
|||
return downloadPath;
|
||||
}
|
||||
|
||||
async function resolveVersionFromManifest(
|
||||
export async function resolveVersionFromManifest(
|
||||
versionSpec: string,
|
||||
stable: boolean,
|
||||
auth: string | undefined,
|
||||
|
@ -188,7 +188,14 @@ export async function getInfoFromManifest(
|
|||
'main'
|
||||
);
|
||||
core.info(`matching ${versionSpec}...`);
|
||||
const rel = await tc.findFromManifest(versionSpec, stable, releases, arch);
|
||||
|
||||
let rel: tc.IToolRelease | undefined;
|
||||
|
||||
if (versionSpec === 'stable') {
|
||||
rel = releases[0];
|
||||
} else {
|
||||
rel = await tc.findFromManifest(versionSpec, stable, releases, arch);
|
||||
}
|
||||
|
||||
if (rel && rel.files.length > 0) {
|
||||
info = <IGoVersionInfo>{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue