Skip to content

Infra enhancements

Infra enhancements #1

Workflow file for this run

name: Check PR Labels
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
check-labels:
name: Check labels
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'feature') && !contains(github.event.pull_request.labels.*.name, 'bug') && !contains(github.event.pull_request.labels.*.name, 'breaking') && !contains(github.event.pull_request.labels.*.name, 'infra') && !contains(github.event.pull_request.labels.*.name, 'docs') && !contains(github.event.pull_request.labels.*.name, 'deprecation') && !contains(github.event.pull_request.labels.*.name, 'dependencies') }}
steps:
- name: Fail build after no labels present
run: |
echo "Pull request does not contain any labels"
echo "Please use at least one of 'feature', 'bug', 'breaking', 'infra', 'docs', 'deprecation' or 'dependencies' labels"
exit 1