GitHub Actions: nym-hash-release: terminate get build info shell after 3 secs

This commit is contained in:
Mark Sinclair
2024-03-20 18:52:48 +00:00
parent e51283f9d3
commit 6ebe71c8a2
2 changed files with 4 additions and 4 deletions
@@ -23974,8 +23974,8 @@ function getBinInfo(path) {
external_fs_.chmodSync(path, mode | 0o111)
const cmd = `${path} build-info --output=json`;
console.log(`🚚 Running ${cmd}...`);
const raw = (0,external_child_process_namespaceObject.execSync)(cmd, { stdio: 'pipe', encoding: "utf8" });
console.log(`🚚 Running ${cmd}... (for max of 3 seconds, then SIGTERM)`);
const raw = (0,external_child_process_namespaceObject.execSync)(cmd, { stdio: 'pipe', encoding: "utf8", timeout: 3000 });
const parsed = JSON.parse(raw)
console.log(` ✅ ok`);
return parsed
@@ -12,8 +12,8 @@ function getBinInfo(path) {
fs.chmodSync(path, mode | 0o111)
const cmd = `${path} build-info --output=json`;
console.log(`🚚 Running ${cmd}...`);
const raw = execSync(cmd, { stdio: 'pipe', encoding: "utf8" });
console.log(`🚚 Running ${cmd}... (for max of 3 seconds, then SIGTERM)`);
const raw = execSync(cmd, { stdio: 'pipe', encoding: "utf8", timeout: 3000 });
const parsed = JSON.parse(raw)
console.log(` ✅ ok`);
return parsed