From 6926674ead770b5d564e5c85325f5b1e5ac70bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Kut=C3=A1=C4=8D?= Date: Tue, 22 Jul 2025 17:02:53 +0200 Subject: [PATCH 1/2] Add instructions how to use status check outside if conditionals --- content/actions/reference/workflows-and-actions/expressions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/actions/reference/workflows-and-actions/expressions.md b/content/actions/reference/workflows-and-actions/expressions.md index 079897e98a80..4f5e5df9f8c5 100644 --- a/content/actions/reference/workflows-and-actions/expressions.md +++ b/content/actions/reference/workflows-and-actions/expressions.md @@ -278,6 +278,8 @@ Creates a hash for all `.rb` files in the `lib` directory at root level, includi You can use the following status check functions as expressions in `if` conditionals. A default status check of `success()` is applied unless you include one of these functions. For more information about `if` conditionals, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif) and [AUTOTITLE](/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsif). +None of status check functions can be used outside `if` conditionals. However, outside `if` you can use `job.status` to access same information. For more information, see [AUTOTITLE](actions/reference/contexts-reference#job-context). + ### success Returns `true` when all previous steps have succeeded. From 5d6b954a4bbe39650b34342781b3e23ab9b5b9c7 Mon Sep 17 00:00:00 2001 From: Sharra-writes Date: Tue, 2 Sep 2025 20:05:11 -0700 Subject: [PATCH 2/2] Update content/actions/reference/workflows-and-actions/expressions.md Co-authored-by: Jacob Wallraff --- content/actions/reference/workflows-and-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/workflows-and-actions/expressions.md b/content/actions/reference/workflows-and-actions/expressions.md index 4f5e5df9f8c5..9223f4be197d 100644 --- a/content/actions/reference/workflows-and-actions/expressions.md +++ b/content/actions/reference/workflows-and-actions/expressions.md @@ -278,7 +278,7 @@ Creates a hash for all `.rb` files in the `lib` directory at root level, includi You can use the following status check functions as expressions in `if` conditionals. A default status check of `success()` is applied unless you include one of these functions. For more information about `if` conditionals, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif) and [AUTOTITLE](/actions/creating-actions/metadata-syntax-for-github-actions#runsstepsif). -None of status check functions can be used outside `if` conditionals. However, outside `if` you can use `job.status` to access same information. For more information, see [AUTOTITLE](actions/reference/contexts-reference#job-context). +Outside `if` conditionals, you can use `job.status` to access the job status. For more information, see [AUTOTITLE](actions/reference/contexts-reference#job-context). ### success