Feature/enable text in lu ts #18
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check PR | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - labeled | |
| - unlabeled | |
| - synchronize | |
| jobs: | |
| formal-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check for required label | |
| env: | |
| LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }} | |
| run: | | |
| REQUIRED_LABELS=("documentation" "feature" "bugfix" "test") | |
| for label in "${REQUIRED_LABELS[@]}"; do | |
| if echo "$LABELS" | grep -q "\"$label\""; then | |
| echo "Found required label: $label" | |
| exit 0 | |
| fi | |
| done | |
| echo "ERROR: PR must have at least one of the following labels: documentation, feature, bugfix, test" | |
| exit 1 |