mirror of
https://gitea.com/actions/setup-go.git
synced 2026-10-06 14:53:23 +01:00
Preserve native Go environment names in action outputs (#793)
* 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>
This commit is contained in:
@@ -5,13 +5,19 @@ export enum State {
|
||||
|
||||
export enum Outputs {
|
||||
CacheHit = 'cache-hit',
|
||||
GoPath = 'go-path',
|
||||
GoBin = 'go-bin',
|
||||
GoBinPath = 'go-bin-path',
|
||||
GoRoot = 'go-root',
|
||||
GoCache = 'go-cache',
|
||||
GoModCache = 'go-mod-cache',
|
||||
GoOs = 'go-os',
|
||||
GoArch = 'go-arch',
|
||||
GoToolDir = 'go-tool-dir'
|
||||
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>>;
|
||||
|
||||
Reference in New Issue
Block a user