Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
output version of go it resolved to
  • Loading branch information
Bryan MacFarlane committed Mar 31, 2020
1 parent e36ce1d commit cec6ece
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js
Expand Up @@ -1318,6 +1318,10 @@ function run() {
// add problem matchers
const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json');
console.log(`##[add-matcher]${matchersPath}`);
// output the version actually being used
let goPath = yield io.which('go');
let goVersion = child_process_1.default.execSync(`${goPath} version`);
console.log('Using go version ');
}
catch (error) {
core.setFailed(error.message);
Expand Down
6 changes: 6 additions & 0 deletions src/main.ts
Expand Up @@ -50,6 +50,12 @@ export async function run() {
// add problem matchers
const matchersPath = path.join(__dirname, '..', 'matchers.json');
console.log(`##[add-matcher]${matchersPath}`);

// output the version actually being used
let goPath = await io.which('go');
let goVersion = cp.execSync(`${goPath} version`);

console.log('Using go version ');
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit cec6ece

Please sign in to comment.