Fix gh token usage

This commit is contained in:
Andy Feller 2024-08-21 00:07:28 -04:00
parent 0ca266bc9a
commit 23acba65f9

View file

@ -25,6 +25,8 @@ jobs:
GOROOT=$(go env GOROOT) go-licenses report ./... --template=.github/licenses.tmpl --stderrthreshold=ERROR --logtostderr=false > "$LICENSE_DIR"/README.md
- name: Upload Go license notices
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tar czf "$LICENSE_ARCHIVE" "$LICENSE_DIR"
gh release upload "$GITHUB_REF_NAME" --clobber -- "$LICENSE_ARCHIVE"