Skip to content

Validate pull request labels #2

Validate pull request labels

Validate pull request labels #2

Workflow file for this run

name: 'Check PR labels'
on:
pull_request:
types:
- labeled
- unlabeled
- opened
- reopened
- ready_for_review
env:
GH_TOKEN: ${{ github.token }}
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- if: ${{ github.event.pull_request.state == 'open' && !github.event.pull_request.draft }}
run: |
LABELS=$(echo "${{ github.event.pull_request.labels[*].name }}")
echo "$LABELS"