Skip to content

Commit 78bd24e

Browse files
Merge pull request actions#50 from actions/goenv
go env block
2 parents 202a594 + 6613fc8 commit 78bd24e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,10 @@ function run() {
13221322
let goPath = yield io.which('go');
13231323
let goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
13241324
console.log(goVersion);
1325+
core.startGroup('go env');
1326+
let goEnv = (child_process_1.default.execSync(`${goPath} env`) || '').toString();
1327+
console.log(goEnv);
1328+
core.endGroup();
13251329
}
13261330
catch (error) {
13271331
core.setFailed(error.message);

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ export async function run() {
5454
// output the version actually being used
5555
let goPath = await io.which('go');
5656
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
57-
5857
console.log(goVersion);
58+
59+
core.startGroup('go env');
60+
let goEnv = (cp.execSync(`${goPath} env`) || '').toString();
61+
console.log(goEnv);
62+
core.endGroup();
5963
} catch (error) {
6064
core.setFailed(error.message);
6165
}

0 commit comments

Comments
 (0)