Skip to content

Commit

Permalink
Fixing license checking again
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Mar 15, 2023
1 parent 1da9430 commit 8c0b44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
ALLOW_LICENSES=`cat .github/workflows/acceptable-licenses.txt | sed "s|<name>|name='|" | sed "s|</name>|' |" | tr -s '\n' '~' | sed 's/\~/or /g' `
find . -name licenses.xml -exec xq "//dependency[count(licenses/license[${ALLOW_LICENSES}])=0]" {} \; > target/license-issues.xml
LINES_FOUND=`cat target/license-issues.xml | wc -l`
LINES_FOUND=`cat target/license-issues.xml | grep "<result>" | wc -l`
if [ $LINES_FOUND -gt 3 ]; then cat target/license-issues.xml ; exit -1; fi
- name: Upload license XML Issues
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 8c0b44f

Please sign in to comment.