Files
Sam Morrow 4acdecc470
Unit Tests / build (ubuntu-latest) (push) Has been cancelled
Unit Tests / build (windows-latest) (push) Has been cancelled
License Check / license-check (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Lint / lint (push) Has been cancelled
add oss licenses
2025-04-01 00:07:11 +02:00

13 lines
401 B
Bash
Executable File

#!/bin/bash
trap 'rm -f third-party-licenses.copy.md' EXIT
go install github.com/google/go-licenses@latest
go-licenses report ./... --template .github/licenses.tmpl > third-party-licenses.copy.md || echo "Ignore warnings"
# if not diff -s then exit 1
if ! diff -s third-party-licenses.copy.md third-party-licenses.md; then
echo "License check failed. Please update the license file."
exit 1
fi