Merge branch 'main' into go-version-from-file

This commit is contained in:
jojo43 2022-05-01 11:33:47 +09:00
commit 757cc0bb4a
35 changed files with 10068 additions and 8373 deletions

View file

@ -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'