File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -63605,13 +63605,13 @@ function run() {
63605
63605
core.info('Setting GOROOT for Go version < 1.9');
63606
63606
core.exportVariable('GOROOT', installDir);
63607
63607
}
63608
- const added = yield addBinToPath();
63609
- core.debug(`add bin ${added}`);
63610
63608
core.info(`Successfully set up Go version ${versionSpec}`);
63611
63609
}
63612
63610
else {
63613
63611
core.info('[warning]go-version input was not specified. The action will try to use pre-installed version.');
63614
63612
}
63613
+ const added = yield addBinToPath();
63614
+ core.debug(`add bin ${added}`);
63615
63615
const goPath = yield io.which('go');
63616
63616
const goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
63617
63617
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
Original file line number Diff line number Diff line change @@ -51,15 +51,16 @@ export async function run() {
51
51
core . exportVariable ( 'GOROOT' , installDir ) ;
52
52
}
53
53
54
- const added = await addBinToPath ( ) ;
55
- core . debug ( `add bin ${ added } ` ) ;
56
54
core . info ( `Successfully set up Go version ${ versionSpec } ` ) ;
57
55
} else {
58
56
core . info (
59
57
'[warning]go-version input was not specified. The action will try to use pre-installed version.'
60
58
) ;
61
59
}
62
60
61
+ const added = await addBinToPath ( ) ;
62
+ core . debug ( `add bin ${ added } ` ) ;
63
+
63
64
const goPath = await io . which ( 'go' ) ;
64
65
const goVersion = ( cp . execSync ( `${ goPath } version` ) || '' ) . toString ( ) ;
65
66
You can’t perform that action at this time.
0 commit comments