diff --git a/content/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions.md b/content/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions.md index cf474fc9cd40..e05c2ee4e388 100644 --- a/content/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions.md +++ b/content/actions/how-tos/write-workflows/choose-when-workflows-run/control-jobs-with-conditions.md @@ -15,7 +15,9 @@ category: contentType: how-tos --- -You can use the `jobs..if` conditional to prevent a job from running unless a condition is met. {% data reusables.actions.if-supported-contexts %} +You can use the `jobs..if` conditional to prevent a job from running unless a condition is met. {% data reusables.actions.if-supported-contexts %} + +Note that conditions executed by a shell (for example `[[ $variable == "prefix"* ]]`) can not be evaluated in `jobs..if`. Such conditions must be written inside `jobs..steps[*].run`. ### Example: Only run job for a specific repository