mirror of https://github.com/sbt/sbt.git
Use new Scala CLA checker
This commit is contained in:
parent
66935c460d
commit
e606b1f794
|
|
@ -4,21 +4,7 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Check CLA
|
||||||
- name: Check CLA
|
uses: scala/cla-checker@v1
|
||||||
env:
|
with:
|
||||||
AUTHOR: ${{ github.event.pull_request.user.login }}
|
author: ${{ github.event.pull_request.user.login }}
|
||||||
run: |
|
|
||||||
echo "Pull request submitted by $AUTHOR";
|
|
||||||
signed=$(curl -s "https://contribute.akka.io/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://contribute.akka.io/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://contribute.akka.io/contribute/cla/scala/check/$AUTHOR";
|
|
||||||
exit 1;
|
|
||||||
fi;
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue