Skip to content
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

add dependencies checker to the release workflow #199

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ jobs:
with:
merge-multiple: true

- name: Dependencies license compliance checker
id: license_check_report
uses: pilosus/action-pip-license-checker@cc7a461bfa27b44ad187b8578c881ef5138c13fd
with:
external: "licenses.csv"
external-format: "csv"
external-options: "{:skip-header false :package-column-index 0 :license-column-index 2}"
report-format: "json-pretty"
formatter: "%-65s %-65s %-20s %-40s"
totals: true
headers: true
fail: "StrongCopyleft,NetworkCopyleft,Other,Error"
verbose: 1
- name: Save report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}" > license-report.json
- name: Upload artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: license-report
path: license-report.json

- name: Zip up docs
run: |
set -vxeuo pipefail
Expand Down
Loading