From fabe2129ee8a8ffea135550bb4b9e71657ef7170 Mon Sep 17 00:00:00 2001 From: jojo43 Date: Sun, 1 May 2022 11:42:54 +0900 Subject: [PATCH] Add waring when the both inputs are specified --- src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.ts b/src/main.ts index 546fded..1152a29 100644 --- a/src/main.ts +++ b/src/main.ts @@ -109,6 +109,12 @@ function resolveVersionInput(): string { let version = core.getInput('go-version'); 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) { return version; }