Skip to content

Commit 5e39168

Browse files
arxeissSharra-writesthyeggman
authored
Add instructions how to use status check outside if conditionals (#39464)
Co-authored-by: Sharra-writes <sharra-writes@github.com> Co-authored-by: Jacob Wallraff <thyeggman@github.com>
1 parent 677d55a commit 5e39168

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

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

281+
Outside `if` conditionals, you can use `job.status` to access the job status. For more information, see [AUTOTITLE](actions/reference/contexts-reference#job-context).
282+
281283
### success
282284

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

0 commit comments

Comments
 (0)