Files
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

23 lines
634 B
YAML

name: CLA
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions: {}
jobs:
acceptance:
name: Verify CLA acceptance
runs-on: ubuntu-latest
steps:
- name: Check pull request declaration
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
declaration='^- \[[xX]\] \*\*I have read and agree to the Gardomatic Contributor License Agreement,'
if ! grep -Eq "$declaration" <<< "$PR_BODY"; then
echo "The pull request author must accept CLA.md using the checkbox in the pull request template."
exit 1
fi