Skip to content

Commit

Permalink
CLA action
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Dec 17, 2024
1 parent e1a47a0 commit de68b96
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,24 +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@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;
- name: Verify CLA
uses: scala/cla-checker
with:
author: ${{ github.event.pull_request.user.login }}

0 comments on commit de68b96

Please sign in to comment.