add automatic license github action

This commit is contained in:
Bastian Doetsch 2022-08-26 15:58:07 +02:00
parent 8aedb82176
commit 716a04de88
No known key found for this signature in database
GPG Key ID: 1BE16C0988EB5F97

View File

@ -26,6 +26,15 @@ jobs:
rm -rf .bin/
rm -rf dist/
- name: Collect and save licenses
run: |
go install github.com/google/go-licenses@latest
go-licenses save . --save_path="licenses"
git add licenses
git commit -m "Updated licenses"
git push
git clean && git reset --hard
- name: Create release tag
run: |
git tag "v$(git show -s --format=%cd --date=format:%Y%m%d.%H%M%S)"