From 98294a6840e186ac6785e82f53bee38c53ba84c6 Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Tue, 20 Aug 2024 23:53:44 -0400 Subject: [PATCH] Fix go-licenses package targeting --- .github/workflows/licenses.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 3b3b6eccd..c6aa1f151 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -4,7 +4,6 @@ on: tags: - "v*" env: - GOPACKAGE: github.com/cli/cli/v2 LICENSE_DIR: licenses LICENSE_ARCHIVE: licenses.tgz jobs: @@ -23,8 +22,8 @@ jobs: run: | go install github.com/google/go-licenses@latest mkdir "$LICENSE_DIR" - go-licenses report "$GOPACKAGE" --template=../.github/licenses.tmpl --stderrthreshold=ERROR --logtostderr=false > "$LICENSE_DIR"/README.md - go-licenses save "$GOPACKAGE" --stderrthreshold=ERROR --logtostderr=false --save_path "$LICENSE_DIR" + go-licenses report ./... --template=../.github/licenses.tmpl --stderrthreshold=ERROR --logtostderr=false > "$LICENSE_DIR"/README.md + go-licenses save ./... --stderrthreshold=ERROR --logtostderr=false --save_path "$LICENSE_DIR" - name: Upload Go license notices run: |