From 9a233e4db5e7b18e10f56dc01aa00b81c59075be Mon Sep 17 00:00:00 2001 From: Carly Gundy Date: Wed, 22 Nov 2023 09:46:49 +0100 Subject: [PATCH] add workflow to this repo --- .github/workflows/check_cla_signed.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/check_cla_signed.yml diff --git a/.github/workflows/check_cla_signed.yml b/.github/workflows/check_cla_signed.yml new file mode 100644 index 0000000..4fe1b4f --- /dev/null +++ b/.github/workflows/check_cla_signed.yml @@ -0,0 +1,31 @@ +# Workflow to check if a user has correctly signed the CLA + +name: Check Issue Signed + +on: + workflow_call: + +jobs: + check-signed: + name: Check CLA signed + runs-on: ubuntu-latest + 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 }}