mirror of
https://github.com/actions/setup-go
synced 2026-09-19 15:42:08 +00:00
Expose go env variables as action outputs (#791)
* feature implementation - output go env * update action.yml * fix action.yml --------- Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com>
This commit is contained in:
co-authored by
mahabaleshwars
parent
468e940882
commit
e626ada899
+18
@@ -26,6 +26,24 @@ outputs:
|
||||
description: 'The installed Go version. Useful when given a version range as input.'
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate if a cache was hit'
|
||||
go-path:
|
||||
description: 'The value of `go env GOPATH`.'
|
||||
go-bin:
|
||||
description: 'The value of `go env GOBIN`.'
|
||||
go-bin-path:
|
||||
description: 'The base Go binary directory: `GOBIN`, otherwise `bin` under the first `GOPATH` entry.'
|
||||
go-root:
|
||||
description: 'The value of `go env GOROOT`.'
|
||||
go-cache:
|
||||
description: 'The value of `go env GOCACHE`, the build cache directory.'
|
||||
go-mod-cache:
|
||||
description: 'The value of `go env GOMODCACHE`, the module cache directory.'
|
||||
go-os:
|
||||
description: 'The value of `go env GOOS`, the target OS in Go notation (linux, darwin, windows).'
|
||||
go-arch:
|
||||
description: 'The value of `go env GOARCH`, the target architecture in Go notation (amd64, arm64).'
|
||||
go-tool-dir:
|
||||
description: 'The value of `go env GOTOOLDIR`, the directory holding the toolchain binaries.'
|
||||
runs:
|
||||
using: 'node24'
|
||||
main: 'dist/setup/index.js'
|
||||
|
||||
Reference in New Issue
Block a user