diff --git a/dist/index.js b/dist/index.js index 8c745f3..0c05f5e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1506,10 +1506,11 @@ function run() { core.exportVariable('GOROOT', installDir); core.addPath(path_1.default.join(installDir, 'bin')); core.info('Added go to the path'); - let added = yield addBinToPath(); - core.debug(`add bin ${added}`); core.info(`Successfully setup go version ${versionSpec}`); } + // add gobin to path + let added = yield addBinToPath(); + core.debug(`add bin ${added}`); // add problem matchers const matchersPath = path_1.default.join(__dirname, '..', 'matchers.json'); core.info(`##[add-matcher]${matchersPath}`); diff --git a/src/main.ts b/src/main.ts index 2d90b2f..027566b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,11 +30,13 @@ export async function run() { core.addPath(path.join(installDir, 'bin')); core.info('Added go to the path'); - let added = await addBinToPath(); - core.debug(`add bin ${added}`); core.info(`Successfully setup go version ${versionSpec}`); } + // add gobin to path + let added = await addBinToPath(); + core.debug(`add bin ${added}`); + // add problem matchers const matchersPath = path.join(__dirname, '..', 'matchers.json'); core.info(`##[add-matcher]${matchersPath}`);