Add waring when the both inputs are specified

This commit is contained in:
jojo43 2022-05-01 11:42:54 +09:00
parent df84f4b7c8
commit fabe2129ee

View file

@ -109,6 +109,12 @@ function resolveVersionInput(): string {
let version = core.getInput('go-version'); let version = core.getInput('go-version');
const versionFilePath = core.getInput('go-version-file'); const versionFilePath = core.getInput('go-version-file');
if (version && versionFilePath) {
core.warning(
'Both go-version and go-version-file inputs are specified, only go-version will be used'
);
}
if (version) { if (version) {
return version; return version;
} }