Skip to content

Commit

Permalink
Update licenses.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz authored Dec 19, 2024
1 parent 329507e commit b4de741
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ jobs:
if [[ -z $(which license-checker) ]]; then
npm install -g license-checker;
fi
# Need to put the env variable as local variable otherwise the space in "Public Domain" will be split
ONLY_ALLOW="$SPDX_ALLOWED_DELIMITED"
echo "SPDX_ALLOWED_DELIMITED is $SPDX_ALLOWED_DELIMITED"
echo "ONLY_ALLOW is $ONLY_ALLOW"
license-checker --production --onlyAllow "$ONLY_ALLOW" --unknown --out /dev/null --excludePackages $EXCLUDE_PACKAGES
SPDX_ALLOWED_DELIMITED=$(echo $SPDX_ALLOWED_DELIMITED | tr -d "\n")
license-checker --production --onlyAllow "$SPDX_ALLOWED_DELIMITED" --unknown --out /dev/null --excludePackages $EXCLUDE_PACKAGES
done
echo "Passed"

0 comments on commit b4de741

Please sign in to comment.