-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: trying a license checker #184
Conversation
.github/workflows/license-check.yml
Outdated
run: | | ||
python .github/workflows/scripts/check_licenses.py \ | ||
pyproject.toml || exit_code=$? | ||
if [ "${exit_code:-0}" -eq 1 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use the condition of "the exit code is not 0" just in case the script returns some error with exit code other than 1? also set the default value to 1 if exit_code does not exist
eg. if [ "${exit_code:-1}" -ne 0 ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
I added a comment above about checking the script result so that this check won't pass if the script itself fails
feedback
.github/workflows/license-check.yml
Outdated
run: | | ||
python .github/workflows/scripts/check_licenses.py \ | ||
packages/exchange/pyproject.toml || exit_code=$? | ||
if [ "${exit_code:-0}" -eq 1 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @michaelneale sorry I did not notice we check the exchange licences here. maybe change here too.
also one small thing about ${exit_code:-0}
, shall we change to ${exit_code:-1}
? in this case, if the exit_code does not exist, we won't treat it as licence check passing.
This will check that licensed of dependencies brought in are valid