mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-05 22:36:55 +00:00
Added helm binary to the Path environment variable
This commit is contained in:
parent
47b42933f7
commit
2b07de8ebf
4 changed files with 22 additions and 1 deletions
|
|
@ -119,6 +119,14 @@ function run() {
|
|||
version = yield getStableHelmVersion();
|
||||
}
|
||||
let cachedPath = yield downloadHelm(version);
|
||||
try {
|
||||
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
||||
core.addPath(path.dirname(cachedPath));
|
||||
}
|
||||
}
|
||||
catch (_a) {
|
||||
//do nothing, set as output variable
|
||||
}
|
||||
console.log(`Helm tool version: '${version}' has been cached at ${cachedPath}`);
|
||||
core.setOutput('helm-path', cachedPath);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue