mirror of
https://github.com/actions/setup-go.git
synced 2025-07-03 06:23:45 +00:00
Merge branch 'main' into go-version-from-file
This commit is contained in:
commit
757cc0bb4a
35 changed files with 10068 additions and 8373 deletions
13
action.yml
13
action.yml
|
@ -1,17 +1,20 @@
|
|||
name: 'Setup Go environment'
|
||||
description: 'Setup a Go environment and add it to the PATH'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
inputs:
|
||||
go-version:
|
||||
description: 'The Go version to download (if necessary) and use. Supports semver spec and ranges.'
|
||||
go-version-from-file:
|
||||
description: Path to the file with the Go version. go-version overwrites this.
|
||||
stable:
|
||||
description: 'Whether to download only stable versions'
|
||||
default: 'true'
|
||||
check-latest:
|
||||
description: 'Set this option to true if you want the action to always check for the latest available version that satisfies the version spec'
|
||||
default: false
|
||||
token:
|
||||
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user.
|
||||
default: ${{ github.token }}
|
||||
outputs:
|
||||
go-version:
|
||||
description: 'The installed Go version. Useful when given a version range as input.'
|
||||
runs:
|
||||
using: 'node12'
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue