mirror of
https://gitea.com/actions/setup-go.git
synced 2026-10-06 06:43:11 +01:00
* preserve native Go environment names in action outputs * implement review comment * Add missing trailing newline to action.yml --------- Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com>
24 lines
426 B
TypeScript
24 lines
426 B
TypeScript
export enum State {
|
|
CachePrimaryKey = 'CACHE_KEY',
|
|
CacheMatchedKey = 'CACHE_RESULT'
|
|
}
|
|
|
|
export enum Outputs {
|
|
CacheHit = 'cache-hit',
|
|
GoBinPath = 'go-bin-path'
|
|
}
|
|
|
|
export const GO_ENV_OUTPUTS = [
|
|
'GOPATH',
|
|
'GOBIN',
|
|
'GOROOT',
|
|
'GOCACHE',
|
|
'GOMODCACHE',
|
|
'GOOS',
|
|
'GOARCH',
|
|
'GOTOOLDIR'
|
|
] as const;
|
|
|
|
export type GoEnvVar = (typeof GO_ENV_OUTPUTS)[number];
|
|
export type GoEnv = Partial<Record<GoEnvVar, string>>;
|