Skip to content

Commit c7ff1bf

Browse files
committed
Fix: Update license checks in workflow
1 parent bc78132 commit c7ff1bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/license-check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
run: |
4242
license_name="${{ steps.classify.outputs.license_name }}"
4343
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
44+
if [[ "$license_name" == "Apache-2.0" || "$license_name" == "BSD-3-Clause" || "$license_name" == "MIT" ]]; then
4645
echo "License is compliant."
4746
else
48-
echo "::error::License '$license_name' is not one of the allowed licenses (Apache, MIT, BSD)."
47+
echo "::error::License '$license_name' is not one of the allowed licenses (Apache-2.0, BSD-3-Clause, MIT)."
4948
exit 1
5049
fi

0 commit comments

Comments
 (0)