add warning if go-version is empty (#350)

This commit is contained in:
Dmitry Shibanov
2023-03-14 16:07:41 +01:00
committed by GitHub
parent b27d76912e
commit ebfdf6ac95
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,10 @@ export async function run() {
const added = await addBinToPath();
core.debug(`add bin ${added}`);
core.info(`Successfully set up Go version ${versionSpec}`);
} else {
core.info(
'[warning]go-version input was not specified. The action will try to use pre-installed version.'
);
}
const goPath = await io.which('go');