Add waring when the both inputs are specified

pull/62/head
jojo43 3 years ago
parent df84f4b7c8
commit fabe2129ee

@ -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;
} }

Loading…
Cancel
Save