Add link to context availability for workflow .if key syntax (#22437)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
This commit is contained in:
@@ -320,7 +320,7 @@ A unique identifier for the step. You can use the `id` to reference the step in
|
||||
|
||||
### `jobs.<job_id>.steps[*].if`
|
||||
|
||||
You can use the `if` conditional to prevent a step from running unless a condition is met. You can use any supported context and expression to create a conditional.
|
||||
You can use the `if` conditional to prevent a step from running unless a condition is met. {% data reusables.actions.if-supported-contexts %}
|
||||
|
||||
{% data reusables.actions.expression-syntax-if %} For more information, see "[Expressions](/actions/learn-github-actions/expressions)."
|
||||
|
||||
|
||||
1
data/reusables/actions/if-supported-contexts.md
Normal file
1
data/reusables/actions/if-supported-contexts.md
Normal file
@@ -0,0 +1 @@
|
||||
You can use any supported context and expression to create a conditional. For more information on which contexts are supported in this key, see "[Context availability](/actions/learn-github-actions/contexts#context-availability)."
|
||||
@@ -1,4 +1,4 @@
|
||||
You can use the `jobs.<job_id>.if` conditional to prevent a job from running unless a condition is met. You can use any supported context and expression to create a conditional.
|
||||
You can use the `jobs.<job_id>.if` conditional to prevent a job from running unless a condition is met. {% data reusables.actions.if-supported-contexts %}
|
||||
|
||||
{% data reusables.actions.expression-syntax-if %} For more information, see "[Expressions](/actions/learn-github-actions/expressions)."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user