define download-base-url to replace https://github.com to use another proxy

This commit is contained in:
Adrian Iacob-Ghiula 2022-12-22 12:45:06 +01:00
parent a3d889c34c
commit d10a58262d
4 changed files with 34 additions and 12 deletions

View file

@ -12,6 +12,9 @@ inputs:
token:
description: Used to pull node 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 || '' }}
download-base-url:
description: 'The download base url to use instead of the https://github.com'
required: false
cache:
description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
default: false
@ -19,6 +22,7 @@ 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.'
outputs:
go-version:
description: 'The installed Go version. Useful when given a version range as input.'