From 982363ea5211e1bc04c4650a40001a305c079cf5 Mon Sep 17 00:00:00 2001 From: "Jiahui (Jerry) Tan" <66892505+Friendseeker@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:24:04 -0800 Subject: [PATCH] Use new Scala CLA --- .github/workflows/cla.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index f9ead39f..b01abbb0 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -4,21 +4,7 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - name: Check CLA - env: - AUTHOR: ${{ github.event.pull_request.user.login }} - run: | - echo "Pull request submitted by $AUTHOR"; - signed=$(curl -s "https://www.lightbend.com/contribute/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://www.lightbend.com/contribute/cla/scala and then"; - echo "comment on the pull request to ask for a new check."; - echo ""; - echo "Check if CLA is signed: https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR"; - exit 1; - fi; + uses: scala/cla-checker@v1 + with: + author: ${{ github.event.pull_request.user.login }}