Job Status Check Functions

I have a workflow that is triggered if another workflow is successful using if: ${{ github.event.workflow_run.conclusion == 'success' }}.

Does the success job status include skipped jobs? In other words, if a job was skipped, would the workflow be considered successful or throw a failure?

The Job status check functions documentation states that the job status is successful unless the job is cancelled or failed: therefore, success includes skipped.

success
Returns true when none of the previous steps have failed or been canceled.

The phrasing is a little ambiguous though, so we can check the Runner source code:

That confirms it! No status (i.e: skipped) is considered successful :slight_smile:

1 Like