-
Notifications
You must be signed in to change notification settings - Fork 41
34 lines (29 loc) · 983 Bytes
/
docs-cla.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "CLA Check"
on:
pull_request_target:
branches:
- dev
- main
jobs:
cla-check:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: neo-technology/whitelist-check
token: ${{ secrets.DOCS_CHECKS_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: |
owner=$(echo "$GITHUB_REPOSITORY" | cut -d/ -f1)
repository=$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)
./bin/examine-pull-request "$owner" "$repository" "$CHECKS_TOKEN" "$PULL_REQUEST_NUMBER" cla-database.csv
env:
PULL_REQUEST_NUMBER: ${{ github.event.number }}
CHECKS_TOKEN: ${{ secrets.DOCS_CHECKS_TOKEN }}