name: Enforce PR labels on: pull_request: types: [labeled, unlabeled, opened, edited, synchronize] workflow_run: workflows: ["Pull Request Labeler"] types: - completed jobs: enforce-label: name: Enforce label runs-on: ubuntu-latest steps: - if: toJson(github.event.pull_request.labels) == '[]' run: exit 1