Job 'page-oncall' should run only when the workflow was cancelled (for example, a user cancelled a long deploy). Which if condition targets that case?
Select an answer to reveal the explanation.
Short Explanation and Infographic
cancelled() is true when the workflow run was cancelled. always() also runs on cancel but also on success and failure.
Full explanation below image
Full Explanation
Use cancelled() when the notification or cleanup is specific to cancellation (billing stop, user abort, concurrency cancel-in-progress). always() is broader. failure() && success() is never true. There is no github.event_name of 'cancel'. Remember dependent jobs still need an if that overrides the default skip behavior when upstream jobs did not succeed—combine with needs carefully. For cancel-in-progress scenarios, concurrency settings determine whether cancelled() becomes relevant for superseded runs.