How to check for a label in a github action condition

Let's say I have a github action like this: name: My Action on: pull_request: types: - closed jobs: myjob: runs-on: ubuntu-latest name: Test if: github.event.pull_request.