From f333b50c5a52884d09d89d4d4f837d8759b72d27 Mon Sep 17 00:00:00 2001 From: Justin Hopkins Date: Fri, 31 May 2024 03:59:16 +1000 Subject: [PATCH] Clarify required check for skipped jobs using 'needs' (#32064) Co-authored-by: Felicity Chapman --- .../troubleshooting-required-status-checks.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks.md b/content/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks.md index 4b176ea4e6..35208b4eb1 100644 --- a/content/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks.md +++ b/content/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks.md @@ -63,6 +63,7 @@ If there is a conflict between the test merge commit and head commit, the checks If, however, a job within a workflow is skipped due to a conditional, it will report its status as "Success". For more information, see "[AUTOTITLE](/actions/using-jobs/using-conditions-to-control-job-execution)." +When a job fails, any jobs that depend on the failed job are skipped and do not report a failure. A pull request that requires the check may not be blocked. To use a required check on a job that depends on other jobs, use the `always()` conditional expression in addition to `needs`, see "[AUTOTITLE](/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs)." {% endwarning %} ### Example