-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from dfinity/add-new-workflow
Add new workflow for public-workflows
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Workflow to check if a user has correctly signed the CLA | ||
|
||
name: Check Signed | ||
|
||
on: | ||
issue_comment: | ||
|
||
jobs: | ||
check-signed: | ||
name: Check CLA signed | ||
runs-on: ubuntu-latest | ||
# Todo: move once testing complete | ||
if: ${{ github.event.label.name == 'test' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: dfinity/public-workflows | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install Dependencies | ||
run: pip install -q -r requirements.txt | ||
shell: bash | ||
- name: Check CLA issue | ||
run: | | ||
export PYTHONPATH="$PWD/reusable_workflows/" | ||
python reusable_workflows/check_cla/check_cla_pr.py | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
ISSUE_ID: ${{ github.event.issue.number }} |