From e42d44994e870516b70aa48d34ffc8bbd845e1f8 Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Tue, 20 Aug 2024 23:48:55 -0400 Subject: [PATCH] Fix working directory error --- .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 1769d5bb3..e1308f6ee 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -20,11 +20,10 @@ jobs: go-version-file: 'go.mod' - name: Generate Go license notices - working-directory: ${{ env.LICENSE_DIR }} run: | go install github.com/google/go-licenses@latest - go-licenses report "$GOPACKAGE" --template=../.github/licenses.tmpl --stderrthreshold=ERROR --logtostderr=false > README.md - go-licenses save "$GOPACKAGE" --stderrthreshold=ERROR --logtostderr=false + 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" - name: Upload Go license notices run: |