mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
npm run build
This commit is contained in:
parent
d706c92bdb
commit
95c6e43dbe
1 changed files with 7 additions and 1 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
@ -1432,7 +1432,13 @@ function run() {
|
||||||
// versionSpec is optional. If supplied, install / use from the tool cache
|
// versionSpec is optional. If supplied, install / use from the tool cache
|
||||||
// If not supplied then problem matchers will still be setup. Useful for self-hosted.
|
// If not supplied then problem matchers will still be setup. Useful for self-hosted.
|
||||||
//
|
//
|
||||||
let versionSpec = core.getInput('go-version');
|
const versionFilePath = core.getInput('go-version-from-file');
|
||||||
|
const versionSpecFromFile = versionFilePath &&
|
||||||
|
fs_1.default
|
||||||
|
.readFileSync(versionFilePath)
|
||||||
|
.toString()
|
||||||
|
.trim();
|
||||||
|
let versionSpec = core.getInput('go-version') || versionSpecFromFile;
|
||||||
// stable will be true unless false is the exact input
|
// stable will be true unless false is the exact input
|
||||||
// since getting unstable versions should be explicit
|
// since getting unstable versions should be explicit
|
||||||
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
|
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
|
||||||
|
|
Loading…
Add table
Reference in a new issue