Update run.ts
This commit is contained in:
parent
5532186cb2
commit
fc4eac4336
1 changed files with 10 additions and 10 deletions
20
src/run.ts
20
src/run.ts
|
@ -77,17 +77,17 @@ export async function downloadKubectl(version: string): Promise<string> {
|
||||||
return kubectlPath;
|
return kubectlPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function run() {
|
// export async function run() {
|
||||||
let version = core.getInput('version', { 'required': true });
|
// let version = core.getInput('version', { 'required': true });
|
||||||
if (version.toLocaleLowerCase() === 'latest') {
|
// if (version.toLocaleLowerCase() === 'latest') {
|
||||||
version = await getStableKubectlVersion();
|
// version = await getStableKubectlVersion();
|
||||||
}
|
// }
|
||||||
let cachedPath = await downloadKubectl(version);
|
// 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}`);
|
// console.log(`Kubectl tool version: '${version}' has been cached at ${cachedPath}`);
|
||||||
core.setOutput('kubectl-path', cachedPath);
|
// core.setOutput('kubectl-path', cachedPath);
|
||||||
}
|
// }
|
||||||
|
|
||||||
run().catch(core.setFailed);
|
run().catch(core.setFailed);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue