mirror of
https://github.com/actions/setup-go.git
synced 2025-04-24 01:50:52 +00:00
up
This commit is contained in:
parent
e440d68e55
commit
c8bb87e036
1 changed files with 3 additions and 2 deletions
|
@ -40,11 +40,12 @@ export async function run() {
|
|||
core.info(`##[add-matcher]${matchersPath}`);
|
||||
|
||||
// output the version actually being used
|
||||
let goVersion = (cp.execSync(`go version`) || '').toString();
|
||||
let goPath = await io.which('go');
|
||||
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||
core.info(goVersion);
|
||||
|
||||
core.startGroup('go env');
|
||||
let goEnv = (cp.execSync(`go env`) || '').toString();
|
||||
let goEnv = (cp.execSync(`${goPath} env`) || '').toString();
|
||||
core.info(goEnv);
|
||||
core.endGroup();
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue