mirror of
https://github.com/actions/setup-go.git
synced 2026-02-14 17:54:42 +08: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:
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:
|
||||
|
||||
Reference in New Issue
Block a user