Closed IanButterworth closed 2 months ago
According to ChatGPT this should work:
In GitHub Actions, if a step within a job is marked with
continue-on-error: true
and it fails, the job will continue executing the subsequent steps. Whether the job as a whole is marked as successful or not depends on the outcomes of the remaining steps.Here's what happens:
Step with
continue-on-error: true
fails: This failure is ignored, and the job proceeds to the next steps.Subsequent steps succeed: If all the subsequent steps succeed, then the overall job will be marked as successful, despite the earlier step failure. This is because the failure of a step with
continue-on-error: true
does not contribute to the final job status.Subsequent steps fail: If any of the subsequent steps fail (and they are not marked with
continue-on-error: true
), then the job will be marked as failed.In summary, a job can be marked as successful if a step with
continue-on-error: true
fails, as long as the steps that follow it succeed.
Fixes #142
Would this mark the job as failed even if steps succeeded afterwards?