Which status check function ensures a step runs even if a previous step failed?
Select an answer to reveal the explanation.
Short Explanation and Infographic
always() is the 'no matter what' function — it bypasses normal step skipping behavior when previous steps fail.
Full explanation below image
Full Explanation
Status check functions control when steps run based on the outcome of prior steps: success() (default) runs only if no prior failure; failure() runs only if a prior step failed; always() runs regardless of previous outcomes (cancelled workflows still stop it); cancelled() runs only if the workflow was cancelled. 'continue()' and 'force()' are not valid GitHub Actions functions. Use always() for cleanup steps like uploading test artifacts even when tests fail. Note: always() does not bypass job-level cancellation from the concurrency feature.