mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
Add Go bin if go-version input is empty (#351)
This commit is contained in:
parent
ebfdf6ac95
commit
fdc0d672a1
2 changed files with 5 additions and 4 deletions
|
@ -51,8 +51,6 @@ export async function run() {
|
|||
core.exportVariable('GOROOT', installDir);
|
||||
}
|
||||
|
||||
const added = await addBinToPath();
|
||||
core.debug(`add bin ${added}`);
|
||||
core.info(`Successfully set up Go version ${versionSpec}`);
|
||||
} else {
|
||||
core.info(
|
||||
|
@ -60,6 +58,9 @@ export async function run() {
|
|||
);
|
||||
}
|
||||
|
||||
const added = await addBinToPath();
|
||||
core.debug(`add bin ${added}`);
|
||||
|
||||
const goPath = await io.which('go');
|
||||
const goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue