Added helm binary to the Path environment variable

This commit is contained in:
Anumita Shenoy
2019-11-26 17:55:31 +05:30
parent 11c996f4c7
commit fe2c706cad
4 changed files with 24 additions and 3 deletions

View File

@ -114,6 +114,17 @@ async function run() {
}
let cachedPath = await downloadHelm(version);
try {
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
core.addPath(path.dirname(cachedPath));
}
}
catch {
//do nothing, set as output variable
}
console.log(`Helm tool version: '${version}' has been cached at ${cachedPath}`);
core.setOutput('helm-path', cachedPath);
}