mirror of
https://gitea.com/actions/setup-go.git
synced 2024-11-22 09:39:31 +01:00
toString
This commit is contained in:
parent
2091469f9f
commit
0dbc7e4965
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -1320,7 +1320,7 @@ function run() {
|
||||||
console.log(`##[add-matcher]${matchersPath}`);
|
console.log(`##[add-matcher]${matchersPath}`);
|
||||||
// output the version actually being used
|
// output the version actually being used
|
||||||
let goPath = yield io.which('go');
|
let goPath = yield io.which('go');
|
||||||
let goVersion = child_process_1.default.execSync(`${goPath} version`);
|
let goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
|
||||||
console.log(goVersion);
|
console.log(goVersion);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ export async function run() {
|
||||||
|
|
||||||
// output the version actually being used
|
// output the version actually being used
|
||||||
let goPath = await io.which('go');
|
let goPath = await io.which('go');
|
||||||
let goVersion = cp.execSync(`${goPath} version`);
|
let goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||||
|
|
||||||
console.log(goVersion);
|
console.log(goVersion);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue