Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move CLA check signed to public-workflows #39

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/check_issue_signed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Workflow to check if a user has correctly signed the CLA

name: Check Issue Signed

on:
issue_comment:

jobs:
check-signed:
name: Check CLA signed
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name }} == "dfinity/cla"
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_issue.py
shell: bash
env:
GH_TOKEN: ${{ github.token }}
ISSUE_ID: ${{ github.event.issue.number }}