mirror of
https://github.com/actions/setup-go
synced 2024-11-08 22:52:41 +00:00
28c3d5cef9
Node 12 has an end of life on April 30, 2022. This PR updates the default runtime to [node16](https://github.blog/changelog/2021-12-10-github-actions-github-hosted-runners-now-run-node-js-16-by-default/), rather then node12. This is supported on all Actions Runners v2.285.0 or later.
15 lines
550 B
YAML
15 lines
550 B
YAML
name: 'Setup Go environment'
|
|
description: 'Setup a Go environment and add it to the PATH'
|
|
author: 'GitHub'
|
|
inputs:
|
|
go-version:
|
|
description: 'The Go version to download (if necessary) and use. Supports semver spec and ranges.'
|
|
stable:
|
|
description: 'Whether to download only stable versions'
|
|
default: 'true'
|
|
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 }}
|
|
runs:
|
|
using: 'node16'
|
|
main: 'dist/index.js'
|