mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
Add waring when the both inputs are specified
This commit is contained in:
parent
df84f4b7c8
commit
fabe2129ee
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue