Skip to content

Commit b7a20d4

Browse files
authored
Merge pull request #109 from frenchy64/cache-hang
Force process exit to avoid cache hang
2 parents bc7570e + 2d31e3e commit b7a20d4

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

dist/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
885885
step((generator = generator.apply(thisArg, _arguments || [])).next());
886886
});
887887
};
888+
var __importDefault = (this && this.__importDefault) || function (mod) {
889+
return (mod && mod.__esModule) ? mod : { "default": mod };
890+
};
888891
Object.defineProperty(exports, "__esModule", ({ value: true }));
889892
exports.post = exports.pre = exports.main = void 0;
890893
const core = __importStar(__nccwpck_require__(2186));
@@ -898,6 +901,7 @@ const cljstyle = __importStar(__nccwpck_require__(2661));
898901
const zprint = __importStar(__nccwpck_require__(982));
899902
const utils = __importStar(__nccwpck_require__(918));
900903
const cache = __importStar(__nccwpck_require__(3782));
904+
const node_process_1 = __importDefault(__nccwpck_require__(7742));
901905
function main() {
902906
return __awaiter(this, void 0, void 0, function* () {
903907
try {
@@ -1030,10 +1034,12 @@ function post() {
10301034
tools.push(cache.save(zprint.identifier, ZPRINT_VERSION));
10311035
}
10321036
yield Promise.all(tools);
1037+
node_process_1.default.exit(0);
10331038
}
10341039
catch (err) {
10351040
const error = err instanceof Error ? err.message : String(err);
10361041
core.debug(error);
1042+
node_process_1.default.exit(1);
10371043
}
10381044
});
10391045
}
@@ -86845,6 +86851,14 @@ module.exports = require("node:events");
8684586851

8684686852
/***/ }),
8684786853

86854+
/***/ 7742:
86855+
/***/ ((module) => {
86856+
86857+
"use strict";
86858+
module.exports = require("node:process");
86859+
86860+
/***/ }),
86861+
8684886862
/***/ 4492:
8684986863
/***/ ((module) => {
8685086864

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/entrypoint.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as cljstyle from './cljstyle'
99
import * as zprint from './zprint'
1010
import * as utils from './utils'
1111
import * as cache from './cache'
12+
import process from 'node:process'
1213

1314
export async function main(): Promise<void> {
1415
try {
@@ -200,9 +201,11 @@ export async function post(): Promise<void> {
200201
}
201202

202203
await Promise.all(tools)
204+
process.exit(0)
203205
} catch (err) {
204206
const error = err instanceof Error ? err.message : String(err)
205207
core.debug(error)
208+
process.exit(1)
206209
}
207210
}
208211

0 commit comments

Comments
 (0)