-
-
Notifications
You must be signed in to change notification settings - Fork 7
19 lines (19 loc) · 648 Bytes
/
Copy pathcla-check.yml
File metadata and controls
19 lines (19 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: "License Verification"
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
cla-check:
runs-on: ubuntu-latest
steps:
- name: Check acceptance checkbox
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
if echo "$PR_BODY" | grep -qi "\-\s*\[x\]\s*I accept the terms of the dual license"; then
echo "Acceptance confirmed. Thank you for your contribution!"
exit 0
else
echo "ERROR: You must check the box accepting the contribution agreement in the PR description in order to merge the code."
exit 1
fi