mirror of
https://github.com/actions/setup-go.git
synced 2025-07-03 06:23:45 +00:00
Add JSON output of go env
and some env as strings
Additional outputs are: - GOPATH as `go-path` string - GOMOD as `go-mod` string - GOCACHE as `go-cache` string - GOMODCACHE as `go-mod-cache` string - `go env` as `go-env` JSON
This commit is contained in:
parent
c4c1141886
commit
18710d65d4
5 changed files with 112 additions and 12 deletions
12
action.yml
12
action.yml
|
@ -22,6 +22,18 @@ inputs:
|
|||
outputs:
|
||||
go-version:
|
||||
description: 'The installed Go version. Useful when given a version range as input.'
|
||||
go-cache:
|
||||
description: 'The GOCACHE environment variable'
|
||||
go-path:
|
||||
description: 'The GOPATH environment variable'
|
||||
go-root:
|
||||
description: 'The GOROOT environment variable'
|
||||
go-mod:
|
||||
description: 'The GOMOD environment variable'
|
||||
go-mod-cache:
|
||||
description: 'The GOMODCACHE environment variable'
|
||||
go-env:
|
||||
description: 'The Go environment variables in JSON format'
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate if a cache was hit'
|
||||
runs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue