Passing an array literal to contains() function causes syntax error #27223
-
Not sure if this is a bug or if I am doing it wrong?
Result:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately the expression syntax doesn’t support JSON. An array would have to dereferenced from some object in the context - e.g. github.event.my_array The current solution for the specific scenario is |
Beta Was this translation helpful? Give feedback.
-
There’s also the ability to do it as follows: |
Beta Was this translation helpful? Give feedback.
Unfortunately the expression syntax doesn’t support JSON. An array would have to dereferenced from some object in the context - e.g. github.event.my_array
The current solution for the specific scenario is
if github.event.repository.name == 'monarch' || github.event.repository.name == 'bloom'