From fc4eac433648203173bcc6c7dfe2df06a1813f70 Mon Sep 17 00:00:00 2001 From: Sundar Date: Sat, 29 May 2021 09:25:27 +0530 Subject: [PATCH] Update run.ts --- src/run.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/run.ts b/src/run.ts index c46e612..45a0403 100644 --- a/src/run.ts +++ b/src/run.ts @@ -77,17 +77,17 @@ export async function downloadKubectl(version: string): Promise { return kubectlPath; } -export async function run() { - let version = core.getInput('version', { 'required': true }); - if (version.toLocaleLowerCase() === 'latest') { - version = await getStableKubectlVersion(); - } - let cachedPath = await downloadKubectl(version); +// export async function run() { +// let version = core.getInput('version', { 'required': true }); +// if (version.toLocaleLowerCase() === 'latest') { +// version = await getStableKubectlVersion(); +// } +// let cachedPath = await downloadKubectl(version); - core.addPath(path.dirname(cachedPath)); +// core.addPath(path.dirname(cachedPath)); - console.log(`Kubectl tool version: '${version}' has been cached at ${cachedPath}`); - core.setOutput('kubectl-path', cachedPath); -} +// console.log(`Kubectl tool version: '${version}' has been cached at ${cachedPath}`); +// core.setOutput('kubectl-path', cachedPath); +// } run().catch(core.setFailed);