Skip to content

Commit

Permalink
build action: succeed on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 20, 2024
1 parent 419128e commit e3bd5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ child.on('exit', function (exit_code, signal) {
exit_code = exit_code !== null ? exit_code : 143
const suffix = exit_code == expect ? ' (as expected)' : ' != ' + expect
const msg = 'Process finished with code ' + exit_code + suffix
exit_code == expect ? core.debug(msg) : core.warning(msg)
process.exit(exit_code == expect ? 0 : 1)
exit_code == expect || exit_code == 143 ? core.debug(msg) : core.warning(msg)
process.exit(exit_code == expect || exit_code == 143 ? 0 : 1)
})

// cancel build after given timout (github default: 6h - 20min slack)
Expand Down

0 comments on commit e3bd5d9

Please sign in to comment.