Skip to content

Passing an array literal to contains() function causes syntax error #27223

Answered by ericsciple
lots0logs asked this question in Actions
Discussion options

You must be logged in to vote

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'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants