Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/reference/workflows-and-actions/expressions
What part(s) of the article would you like to see updated?
Hello,
This page documents expressions supported by GitHub Actions. However, it doesn't explain the evaluation priorities of the various operators. For example, in C/C++, && has priority over ==, so an expression like
a == b && c
will certainly not yield the intended result. In C/C++, you probably want to write something like this:
(a == b) && c
But I have seen workflow files containing expressions such as
a == b && c
and apparently yielding the expected result.
Please clarify this by documenting the operators' priorities.
Additional information
No response
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/reference/workflows-and-actions/expressions
What part(s) of the article would you like to see updated?
Hello,
This page documents expressions supported by GitHub Actions. However, it doesn't explain the evaluation priorities of the various operators. For example, in C/C++,
&&has priority over==, so an expression likea == b && c
will certainly not yield the intended result. In C/C++, you probably want to write something like this:
(a == b) && c
But I have seen workflow files containing expressions such as
a == b && c
and apparently yielding the expected result.
Please clarify this by documenting the operators' priorities.
Additional information
No response