Use labels from GitHub to filter what tests are run

I’m trying to figure out how to use GitHub labels as a way to determine what tests are run. At the moment, we have a rather large test suite and I’d like to be able to have the developers choose which areas of code to test with their pull requests. It’s not as simple as just building out a set of workflows for each possible set of tests as they should be able to choose 1 to many areas of code to test. I have figured out how to build a workflow that will honor a single label, but I’d like to figure out how to use labels to build a concatenated list of them to pass into the Cypress orb. Any suggestions would be appreciated.

This works for a single label.

env: ‘grepTags="<< pipeline.parameters.GREP >>"’