mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 00:13:44 +00:00
Introduce new stable alias type
This commit is contained in:
parent
d33323e2b9
commit
5552b45f54
2 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@ import fs from 'fs';
|
|||
import os from 'os';
|
||||
|
||||
type InstallationType = 'dist' | 'manifest';
|
||||
export type StableAliasType = 'stable' | 'oldstable';
|
||||
|
||||
export interface IGoVersionFile {
|
||||
filename: string;
|
||||
|
@ -175,7 +176,7 @@ export async function extractGoArchive(archivePath: string): Promise<string> {
|
|||
}
|
||||
|
||||
export async function getInfoFromManifest(
|
||||
versionSpec: string,
|
||||
versionSpec: string | StableAliasType,
|
||||
stable: boolean,
|
||||
auth: string | undefined,
|
||||
arch = os.arch()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue