Code of Conduct
What article on docs.github.com is affected?
Anything that uses reusables.actions.expression-syntax-if, which states:
When you use expressions in an if conditional, you may omit the expression syntax (${{ }}) because GitHub automatically evaluates the if conditional as an expression.
So, at least the following:
- https://docs.github.com/en/actions/learn-github-actions/expressions
- https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif
What changes are you suggesting?
These articles suggest that ${{ }} can always be omitted from an if conditional. However, that is not the case since this results in a YAML syntax error (evidence):
Wrapping it in ${{ }} allows the expression to be evaluated properly (evidence):
if: ${{ !false || false }}
I suggest changing the wording to highlight this limitation.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
Anything that uses
reusables.actions.expression-syntax-if, which states:So, at least the following:
What changes are you suggesting?
These articles suggest that
${{ }}can always be omitted from anifconditional. However, that is not the case since this results in a YAML syntax error (evidence):Wrapping it in
${{ }}allows the expression to be evaluated properly (evidence):I suggest changing the wording to highlight this limitation.
Additional information
No response