Skip to content

Commit

Permalink
install license detector
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit committed Jul 5, 2024
1 parent 4a1f684 commit aabc233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/templates/NOTICE.txt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Licence : {{ $dep.LicenceType }}
{{ end }}
{{- end -}}

Copyright 2019-{{ currentYear }} Quesma Inc
Copyright 2023-{{ currentYear }} Quesma Inc

This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/generate-notice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:
working-directory: ${{ matrix.module }}
run: go install go.elastic.co/go-licence-detector


- name: Print Dependencies
- name: Generate NOTICE.MD
working-directory: ${{ matrix.module }}
run: |
go list -m -json all | go-licence-detector -includeIndirect -noticeTemplate=.github/templates/NOTICE.txt.tmpl -noticeOut=NOTICE.txt -depsTemplate=.github/templates/dependencies.asciidoc.tmpl -depsOut=dependencies.asciidoc
cat dependencies.asciidoc
cat NOTICE.txt
go list -m -json all | go-licence-detector -includeIndirect -noticeTemplate=../.github/templates/NOTICE.txt.tmpl -noticeOut=../NOTICE.MD -depsTemplate=../.github/templates/dependencies.asciidoc.tmpl -depsOut=dependencies.asciidoc
rm dependencies.asciidoc

0 comments on commit aabc233

Please sign in to comment.