mheap / github-action-required-labels

Fail the build if/unless a certain combination of labels are applied to a pull request
MIT License
99 stars 23 forks source link

Support list of labels #58

Closed sagikazarmark closed 1 year ago

sagikazarmark commented 1 year ago

When the list of labels is long, it's not very easy to manage them in a single line and comma separation.

Many actions support lists of items like this:

-
        name: Docker meta
        id: meta
        uses: docker/metadata-action@v4
        with:
          # list of Docker images to use as base name for tags
          images: |
            name/app
            ghcr.io/username/app
          # generate Docker tags based on the following events/attributes
          tags: |
            type=schedule
            type=ref,event=branch
            type=ref,event=pr
            type=semver,pattern={{version}}
            type=semver,pattern={{major}}.{{minor}}
            type=semver,pattern={{major}}
            type=sha

Adding support for labels like these would be nice. Thanks!

mheap commented 1 year ago

This is now available in @v5

sagikazarmark commented 1 year ago

Awesome, thanks!