From 8aae9540920b8ad5c1b24b7ce248f434187971b6 Mon Sep 17 00:00:00 2001 From: Li Junchen Date: Thu, 7 Mar 2024 16:34:45 +0800 Subject: [PATCH] cla check --- .github/workflows/check.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 99d238e3c..a30a799be 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -28,3 +28,12 @@ jobs: run: | moon fmt git diff + + - name: CLA check + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + PR_AUTHOR=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \ + | jq -r '.user.login') + echo "The PR author is $PR_AUTHOR"