Merge pull request #50 from actions/goenv

go env block
This commit is contained in:
Bryan MacFarlane authored and GitHub committed 2020-04-06 09:29:27 -04:00
commit 78bd24e01a
2 files changed
+9 -1

No files matched your search

+4
View File
@@ -1322,6 +1322,10 @@ function run() {
let goPath = yield io.which('go');
let goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
console.log(goVersion);
core.startGroup('go env');
let goEnv = (child_process_1.default.execSync(`${goPath} env`) || '').toString();
console.log(goEnv);
core.endGroup();
}
catch (error) {
core.setFailed(error.message);
+5 -1
View File
@@ -54,8 +54,12 @@ export async function run() {
// output the version actually being used
let goPath = await io.which('go');
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
console.log(goVersion);
core.startGroup('go env');
let goEnv = (cp.execSync(`${goPath} env`) || '').toString();
console.log(goEnv);
core.endGroup();
} catch (error) {
core.setFailed(error.message);
}