We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc78132 commit c7ff1bfCopy full SHA for c7ff1bf
.github/workflows/license-check.yml
@@ -41,10 +41,9 @@ jobs:
41
run: |
42
license_name="${{ steps.classify.outputs.license_name }}"
43
echo "Detected license: $license_name"
44
- # The prompt mentioned "Apahche", which is likely a typo for "Apache".
45
- if [[ "$license_name" == "Apache" || "$license_name" == "MIT" || "$license_name" == "BSD" ]]; then
+ if [[ "$license_name" == "Apache-2.0" || "$license_name" == "BSD-3-Clause" || "$license_name" == "MIT" ]]; then
46
echo "License is compliant."
47
else
48
- echo "::error::License '$license_name' is not one of the allowed licenses (Apache, MIT, BSD)."
+ echo "::error::License '$license_name' is not one of the allowed licenses (Apache-2.0, BSD-3-Clause, MIT)."
49
exit 1
50
fi
0 commit comments