Is there a way to test the presence of a label in a GitHub Action?
I have a GitHub Action setup like this:
name: My Action
on:
pull_request:
types:
- closed
jobs:
myjob:
runs-on: ubuntu-latest
name: Test
if: github.event.pull_request.merged && XXX
From the docs, contains( github.event.pull_request.labels, 'my_label')
doesn’t seem to work since github.event.pull_request.labels
is a dictionary. Is there any way to accomplish what I’m trying to do?