Skip to content

wip: check labels

wip: check labels #1

Workflow file for this run

name: 'Check PR labels'

Check failure on line 1 in .github/workflows/check-labels.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-labels.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
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"