Closed BenjaminRodenberg closed 3 years ago
Hi @BenjaminRodenberg
In my experience it works either way. It also says so at the link you provided:
When you use expressions in an if conditional, you may omit the expression syntax (${{ }}) because GitHub automatically evaluates the if conditional as an expression.
Thanks for raising the PR but I think I'll leave it without brackets.
Following syntax from https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsif
I tried to run a similar case without the
${{ ... }}
as suggested in the original example, but theif
never evaluatedtrue
. I'm not very experienced with github actions. Therefore, if this is not a obvious case, I can also provide an example.