actions-linter icon indicating copy to clipboard operation
actions-linter copied to clipboard

Problem with contains()

Open peterbe opened this issue 4 years ago • 2 comments

See screenshot: Screen Shot 2021-12-13 at 10 40 54 AM

I know the code works. I tested it.

And the syntax is documented here: https://docs.github.com/en/actions/learn-github-actions/expressions#example-using-an-array

peterbe avatar Dec 13 '21 15:12 peterbe

Sorry. My bad! I misread the error.

peterbe avatar Dec 13 '21 17:12 peterbe

Actually, I think it is a "bug". When we change from

${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'automated-block-deploy') }}

to

github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'automated-block-deploy')

the linting error went away.

peterbe avatar Dec 13 '21 18:12 peterbe