diff --git a/dist/index.js b/dist/index.js index 87a1a02..7f00ad0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); diff --git a/src/main.ts b/src/main.ts index d693deb..9b8f9fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); }