How can I use a specific label in a concurrency group?

I am implementing a continous delivery pipeline (so if tests pass it automatically moves to a higher environment). I would like to use a specific label that gets set as part of my concurrency group name definition. My repository is a monorepo so this would allow me to use a generic pipeline in a monorepo while still limiting the concurrency per app basis.

EDIT OK neat, I’m able to use labels via the below which is cool. In na ideal world though I want to only include a subset of labels as not all of my labels I want to use relate to the environment and therefore concurrency concers.

concurrency:
  group: join(github.event.issue.labels.*.name, '')

EDIT OK odd, this appears to work still after I raised a new PR with a new second label (service/api) and the concurrency group is blocking it? Has anyone got any insight into why this works? I didn’t expect this to get blocked as the conrreuncy group in my original PR should be target/qa whilst in this second PR it is target/qaservice/api

        "labels": [
          {
            "color": "3E141C",
            "default": false,
            "description": "",
            "id": 3526089008,
            "name": "target/qa",
            "node_id": "LA_kwDOGIUOOM7SK9kw",
            "url": "https://api.github.com/repos/owner/repo/labels/target/qa"
          },
          {
            "color": "F9C30F",
            "default": false,
            "description": "",
            "id": 3526116448,
            "name": "service/api",
            "node_id": "LA_kwDOGIUOOM7SLERg",
            "url": "https://api.github.com/repos/owner/repo/labels/service/api"
          }
        ],

Oh boy this took a long time to be un-hidden.

I ended up doing this:

concurrency:
  group: ${{ format('{0}', join(github.event.pull_request.labels.*.name, '-')) }}

This isn’t ideal as now I basically can’t use labels for anything else now. What would be really cool and much better is if there was better support for accessing specific items in an index or being able to select things based on a LIKE.

Some examples.

Lets imagine you have a series of labels that you namespace, being able to select specific labels based on a LIKE i.e. the namespace would be super powerful and enable you to include additional labels that you can use to drive other aspects of the logic in the workflow:

concurrency:
    # group: qa-service/api
    group: ${{ format('{0}', join(github.event.pull_request.labels['service/*'].name, '-')) }}

Alternatively, if label order was deterministic e.g. numbers and alphabetically you could access the appropriate labels via an index, to ensure ordering you could once again namespace your labels:

concurrency:
    # group: qa-service/api
    group: ${{ format('{0}', join(github.event.pull_request.labels[0].name, '-')) }}

This would greatly improve the versatility of labels for workflows in general but with regards to my case, concurrency groups