From 61d2626021dc3c79f123f528f7ce2b7953f3fb6a Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 26 Feb 2025 17:57:42 -0800 Subject: [PATCH] use standard CLA checker action --- .github/workflows/cla.yml | 13 ++++++++----- project/scripts/check-cla.sh | 17 ----------------- 2 files changed, 8 insertions(+), 22 deletions(-) delete mode 100755 project/scripts/check-cla.sh diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 1547a05..3549ded 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,8 +1,11 @@ -name: Scala CLA -on: [pull_request] +name: "Check Scala CLA" +on: + pull_request: jobs: - check: + cla-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: ./project/scripts/check-cla.sh + - name: Verify CLA + uses: scala/cla-checker@v1 + with: + author: ${{ github.event.pull_request.user.login }} diff --git a/project/scripts/check-cla.sh b/project/scripts/check-cla.sh deleted file mode 100755 index 98ca0db..0000000 --- a/project/scripts/check-cla.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -set -eux - -AUTHOR=$GITHUB_ACTOR -echo "Pull request submitted by $AUTHOR"; -signed=$(curl -s https://contribute.akka.io/cla/scala/check/$AUTHOR | jq -r ".signed"); -if [ "$signed" = "true" ] ; then - echo "CLA check for $AUTHOR successful"; -else - echo "CLA check for $AUTHOR failed"; - echo "Please sign the Scala CLA to contribute to the Scala compiler."; - echo "Go to https://contribute.akka.io/cla/scala and then"; - echo "comment on the pull request to ask for a new check."; - echo ""; - echo "Check if CLA is signed: https://contribute.akka.io/cla/scala/check/$AUTHOR"; - exit 1; -fi;