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 .bin/
|
||||||
rm -rf dist/
|
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
|
- name: Create release tag
|
||||||
run: |
|
run: |
|
||||||
git tag "v$(git show -s --format=%cd --date=format:%Y%m%d.%H%M%S)"
|
git tag "v$(git show -s --format=%cd --date=format:%Y%m%d.%H%M%S)"
|
||||||
|
Reference in New Issue
Block a user