mirror of
https://github.com/actions/setup-go.git
synced 2025-12-25 17:13:37 +00:00
feat: add support for custom go-download-site input
This adds a new `go-download-site` input parameter that allows users to specify a custom base URL for downloading Go distributions. This is particularly useful for GitHub Enterprise Server (GHES) environments, corporate proxies, or air-gapped setups where direct access to github.com is restricted. Changes: - Added `go-download-site` input to `action.yml` (default: `https://github.com`) - Updated `installer.ts` to replace the default GitHub URL with the provided custom site URL - Updated `main.ts` to pass the input to the installer - Added documentation in `README.md` with examples for Artifactory and GHES proxies Resolves #296
This commit is contained in:
parent
4dc6199c7b
commit
74a1f88c58
4 changed files with 91 additions and 8 deletions
|
|
@ -19,6 +19,9 @@ inputs:
|
|||
description: 'Used to specify the path to a dependency file - go.sum'
|
||||
architecture:
|
||||
description: 'Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default.'
|
||||
go-download-site:
|
||||
description: 'Base URL for downloading Go distributions. Useful for GitHub Enterprise or when using a proxy/mirror. Defaults to https://github.com'
|
||||
default: 'https://github.com'
|
||||
outputs:
|
||||
go-version:
|
||||
description: 'The installed Go version. Useful when given a version range as input.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue