Skip to content

Commit 7760b72

Browse files
authored
Add instructions how to use status check outside if conditionals
1 parent f7c187d commit 7760b72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/actions/reference/evaluate-expressions-in-workflows-and-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ Creates a hash for all `.rb` files in the `lib` directory at root level, includi
277277

278278
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).
279279

280+
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).
281+
280282
### success
281283

282284
Returns `true` when all previous steps have succeeded.

0 commit comments

Comments
 (0)