From 380a0ec513b50d4b710c766580942a76c3666bcc Mon Sep 17 00:00:00 2001 From: Conventional Changelog Action Date: Sat, 16 Jan 2021 11:16:37 +0000 Subject: [PATCH] chore(release): v1.0.17 --- CHANGELOG.md | 7 +++++++ index.js | 18 ++++++------------ package.json | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a2db36..b51788a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ +## 1.0.17 (2021-01-16) + +* fix: exit condition ([914a115](https://github.com/simonecorsi/mawesome/commit/914a115)) + + + ## 1.0.16 (2021-01-16) * chore: moved helpers in own file ([29bcf41](https://github.com/simonecorsi/mawesome/commit/29bcf41)) +* chore(release): v1.0.16 ([f8cb892](https://github.com/simonecorsi/mawesome/commit/f8cb892)) * fix: if tempalte fail should exit(1) ([ee824d1](https://github.com/simonecorsi/mawesome/commit/ee824d1)) diff --git a/index.js b/index.js index f005fa3..7a25348 100644 --- a/index.js +++ b/index.js @@ -21229,7 +21229,7 @@ exports.default = got_1.default.extend({ "use strict"; -// original content by: github.com/TriPSs/conventional-changelog-action/blob/master/src/helpers/git.js +// original content by: https://github.com/TriPSs/conventional-changelog-action/blob/master/src/helpers/git.js var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); @@ -21381,9 +21381,8 @@ function renderer(data, templateString = template_1.default) { return ejs_1.default.render(templateString, data); } catch (error) { - core.error('#renderer'); - core.error(error); - process.exit(1); + core.setFailed(`#renderer: ${error}`); + return ''; } }); } @@ -21406,7 +21405,7 @@ let links = { }; function paginate() { return __awaiter(this, void 0, void 0, function* () { - if (!isLastPage(links)) + if (isLastPage(links)) return null; const r = yield apiGetStar(links.next); links = r.links; @@ -21515,20 +21514,15 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { yield main(); - process.exit(0); } catch (error) { - core.error('#run:'); - core.error(error); - process.exit(1); + core.setFailed(`#run: ${error}`); } }); } exports.run = run; const catchAll = (info) => { - core.error('#catchAll'); - core.error(info); - process.exit(1); + core.setFailed(`#catchAll: ${info}`); }; process.on('unhandledRejection', catchAll); process.on('uncaughtException', catchAll); diff --git a/package.json b/package.json index ba96098..2d7fa0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mawesome", - "version": "1.0.16", + "version": "1.0.17", "description": "", "main": "index.js", "scripts": {