mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 05:03:43 +00:00
add warning if go-version is empty
This commit is contained in:
parent
7406d654ad
commit
c7f2c70396
2 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue