add automatic license github action
This commit is contained in:
parent
8aedb82176
commit
716a04de88
9
.github/workflows/go.yml
vendored
9
.github/workflows/go.yml
vendored
@ -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)"
|
||||
|
Reference in New Issue
Block a user