Skip to content

Add path-filtering for PRs #147

Add path-filtering for PRs

Add path-filtering for PRs #147

Workflow file for this run

---
name: CLA
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
permissions:
contents: read
jobs:
# Based on https://stackoverflow.com/questions/71502652/prevent-merging-of-branch-conditionally-based-on-label
fail-for-no-cla:
if: ${{!contains(github.event.pull_request.labels.*.name, 'cla')}}
runs-on: ubuntu-latest
steps:
- name: Fail for missing cla label
run: |
echo "cla label missing. See CONTRIBUTING.md."
exit 1