This commit is contained in:
Josh Soref 2026-03-22 12:51:00 +08:00 committed by GitHub
commit c62c9884ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
name: 'Setup Go environment'
description: 'Setup a Go environment and add it to the PATH'
description: 'Set up a Go environment and add it to the PATH'
author: 'GitHub'
inputs:
go-version:
@ -8,13 +8,13 @@ inputs:
description: 'Path to the go.mod, go.work, .go-version, or .tool-versions file.'
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
default: 'false'
token:
description: Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
cache:
description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
default: true
default: 'true'
cache-dependency-path:
description: 'Used to specify the path to a dependency file (e.g., go.mod, go.sum)'
architecture: