From c6ae8351b92b334f4a3c16c198a4ba5caedbf466 Mon Sep 17 00:00:00 2001 From: zhiliaev Date: Mon, 24 Jan 2022 03:42:07 +0300 Subject: [PATCH] fix $PATH --- .github/workflows/integration-tests.yml | 4 ++-- index.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6b17dc8..d62ec19 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -16,7 +16,7 @@ jobs: name: Install helmwave with: version: '0.17.1' + id: install + - run: ${{ steps.install.outputs.path }} --version - run: helmwave --version - - diff --git a/index.js b/index.js index f9eb68a..0385a23 100644 --- a/index.js +++ b/index.js @@ -56,6 +56,9 @@ function run() { cachedPath = _a.sent(); console.log("Helmwave tool version: '".concat(version, "' has been cached at ").concat(cachedPath)); core.setOutput('path', cachedPath); + if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) { + core.addPath(path.dirname(cachedPath)); + } return [2 /*return*/]; } });