From 346a317c821586aa09b5094f7f5cf638d1c51e64 Mon Sep 17 00:00:00 2001 From: "team-integrations-fnm[bot]" <107085870+team-integrations-fnm-bot@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:25:38 +1000 Subject: [PATCH 1/2] chore(main): release 3.1.1 --- CHANGELOG.md | 13 +++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf8a172..652686f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [3.1.1](https://github.com/OctopusDeploy/install-octopus-cli-action/compare/v3.1.0...v3.1.1) (2024-01-03) + + +### Bug Fixes + +* **deps:** update dependency @actions/core to v1.10.1 ([9ef46dd](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/9ef46ddadc1338f89f84ef921a3b90a8962ba8a1)) +* **deps:** update dependency uuid to v9.0.1 ([02deaca](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/02deaca4309fc202b3212375169f1aee085777c4)) +* force exit when done ([cfb528f](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/cfb528f382414677408075e6474e56caf8356914)) +* hanging when after install ([8669ed4](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/8669ed4e3a1bd84b27e7b2686915e222fdb0daa1)) +* not awaiting fs.rm ([bdc65fe](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/bdc65fef29c5aa4c7db56420464c463a252c6209)) +* not handling run function ([e14e8e1](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/e14e8e1bdc03441d08930cd12668f324268cf14d)) +* Updates to latest transitive dependencies to address dependabot alerts ([#413](https://github.com/OctopusDeploy/install-octopus-cli-action/issues/413)) ([2efe771](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/2efe771f0571c855f3545cf363c700cbdf71264e)) + ## [3.1.0](https://github.com/OctopusDeploy/install-octopus-cli-action/compare/v3.0.1...v3.1.0) (2023-12-14) diff --git a/package-lock.json b/package-lock.json index d53846c6..61c57a76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "install-octopus-cli-action", - "version": "3.1.0", + "version": "3.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "install-octopus-cli-action", - "version": "3.1.0", + "version": "3.1.1", "license": "Apache-2.0", "dependencies": { "@actions/core": "1.10.1", diff --git a/package.json b/package.json index fac683c5..bf6ca76d 100644 --- a/package.json +++ b/package.json @@ -83,5 +83,5 @@ "postbuild": "ncc build out/main.js -o dist", "test": "jest --ci --reporters=default --reporters=jest-junit --passWithNoTests" }, - "version": "3.1.0" + "version": "3.1.1" } From 6c252dccd730236a48b6b3eeae70a796182128aa Mon Sep 17 00:00:00 2001 From: team-integrations-fnm-bot Date: Wed, 3 Jan 2024 00:26:05 +0000 Subject: [PATCH 2/2] chore: build dist and update README --- dist/index.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index b0ee19d7..10b82121 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7302,6 +7302,7 @@ function run() { (0, core_1.setFailed)(e); } } + process.exit(); }); } run(); @@ -7365,10 +7366,13 @@ const http = new http_client_1.HttpClient('action-install-octopus-cli', undefine }); const downloadsRegEx = /^.*_(?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)_(?linux|macOS|windows)_(?arm64|amd64).(?tar.gz|zip)$/gi; const getVersions = () => __awaiter(void 0, void 0, void 0, function* () { - const releasesResponse = (yield http.getJson(releasesUrl)).result; + const releasesResponse = (yield http.getJson(releasesUrl)) + .result; if (releasesResponse === null) return null; - const downloads = releasesResponse.flatMap(v => v.assets.filter(a => downloadsRegEx.test(a.name)).map(a => { + const downloads = releasesResponse.flatMap(v => v.assets + .filter(a => downloadsRegEx.test(a.name)) + .map(a => { var _a, _b, _c, _d; const matches = downloadsRegEx.exec(a.name); return { @@ -7427,7 +7431,9 @@ const getDownloadUrl = (versionSpec) => __awaiter(void 0, void 0, void 0, functi } let downloadUrl; for (const download of versionsResponse.downloads) { - if (download.version === version && download.platform === platform && download.architecture === arch) { + if (download.version === version && + download.platform === platform && + download.architecture === arch) { downloadUrl = download.location; } } @@ -7458,9 +7464,9 @@ function installOctopusCli(version) { else if (octopusCliDownload.downloadUrl.endsWith('.gz')) { extPath = yield (0, tool_cache_1.extractTar)(downloadPath); } - fs_1.promises.rm(`${extPath}/CHANGELOG.md`, { force: true }); - fs_1.promises.rm(`${extPath}/README.md`, { force: true }); - fs_1.promises.rm(`${extPath}/LICENSE`, { force: true }); + yield fs_1.promises.rm(`${extPath}/CHANGELOG.md`, { force: true }); + yield fs_1.promises.rm(`${extPath}/README.md`, { force: true }); + yield fs_1.promises.rm(`${extPath}/LICENSE`, { force: true }); (0, core_1.debug)(`Extracted to ${extPath}`); const cachePath = yield (0, tool_cache_1.cacheDir)(extPath, 'octopus', octopusCliDownload.version, octopusCliDownload.architecture); (0, core_1.debug)(`Cached to ${cachePath}`);