Skip to content

Commit

Permalink
Merge pull request #1271 from Friendseeker/fix-cla
Browse files Browse the repository at this point in the history
[1.x] Fix Scala CLA & Add `setup-sbt`
  • Loading branch information
adpi2 authored Dec 27, 2024
2 parents f35366d + 312f240 commit 259b8ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
distribution: 'adopt'
java-version: '11'
cache: 'sbt'
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Setup node
uses: actions/setup-node@v4
with:
Expand Down
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@v1
with:
author: ${{ github.event.pull_request.user.login }}

0 comments on commit 259b8ec

Please sign in to comment.