-
Notifications
You must be signed in to change notification settings - Fork 64.4k
Open
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions code
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's 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
Metadata
Metadata
Assignees
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions code