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] 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.