-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step if condition starting with ! fails parsing #753
Comments
Try quoting the expression |
Had the same problem. Quoting the expression helped in my case. |
https://cloudslang-docs.readthedocs.io/en/v1.0/yaml_overview.html#scalars-strings-numbers-values
|
Quoting the string with
And not using single quotes in So I had to resort to So much complexity for such a simple thing 🥵 |
Describe the bug
My workflow has a step if condition that starts with a
!
to negate the expression. The yaml file cannot be parsed:While parsing a tag, did not find expected tag URI.
To Reproduce
Steps to reproduce the behavior:
.github/workflow/
:Expected behavior
The expression
! false
should be resolved totrue
. This workflow file works when the expression is enclosed in round brackets:if: ( ! false )
. Those brackets should not be required.Runner Version and Platform
Version of your runner? Current
OS of the machine running the runner? Ubuntu
The text was updated successfully, but these errors were encountered: