diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 7323129..bce8a12 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -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"