Skip to content

install license detector #11

install license detector

install license detector #11

Workflow file for this run

name: Generate NOTICE.MD
on:
push:
workflow_dispatch:
jobs:
generate-notice-file:
strategy:
matrix:
module: [ "quesma" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
cache-dependency-path: ${{ matrix.module }}/go.sum
go-version: '1.22'
- name: Install go-licence-detector
working-directory: ${{ matrix.module }}
run: go install go.elastic.co/go-licence-detector
- name: Print Dependencies
working-directory: ${{ matrix.module }}
run: |
ls -al
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