1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-09 20:12:23 +02:00

go env block

This commit is contained in:
Bryan MacFarlane 2020-04-06 08:42:55 -04:00
parent 202a594963
commit 6613fc89fc
2 changed files with 9 additions and 1 deletions

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);
}