Adding tool binaries to PATH (#4)

* Adding tool binaries to PATH

* Resolving PR comments
This commit is contained in:
shigupt202 2020-06-08 14:04:23 +05:30 committed by GitHub
parent 9b492bbd34
commit b7b3104215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -70,6 +70,9 @@ async function run() {
version = await getStableKubectlVersion();
}
let cachedPath = await downloadKubectl(version);
core.addPath(path.dirname(cachedPath));
console.log(`Kubectl tool version: '${version}' has been cached at ${cachedPath}`);
core.setOutput('kubectl-path', cachedPath);
}