mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
go env block
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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);
|
||||
|
Reference in New Issue
Block a user