diff --git a/src/setup.ts b/src/setup.ts index 5a20c48..3eaeb74 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -21,7 +21,7 @@ export async function installKubectl() { trimWhitespace: true }) - const version = input || await fetchLatestVersion() + const version = input === 'latest' ? await fetchLatestVersion() : input if (!version?.startsWith('v')) { setFailed('Unable to determine the `kubectl` version to install')