in index.js [193:205]
await updateStatusComment(overridden, latestRun.conclusion, latestRun?.html_url)
if (latestRun.conclusion !== 'success') {
let msg = `Latest run of workflow on ${mainBranch} branch is failing: ${latestRun?.html_url}`
if (overridden) {
console.log(msg)
console.log("Override flag found, not failing the run.")
} else {
core.setFailed(msg)
}
} else {
console.log(`Latest run of workflow on ${mainBranch} branch is successful: ${latestRun?.html_url}`)
}