diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e353ce3ef5d..e9cd428693d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,9 @@ jobs: - name: Save Go env id: go-env - run: go env >> $GITHUB_OUTPUT + run: | + echo GOPATH=$(go env GOPATH) >> $GITHUB_OUTPUT + echo GOBIN=$(go env GOPATH)/bin >> $GITHUB_OUTPUT - name: Check compatible min Go version run: | @@ -97,7 +99,7 @@ jobs: with: name: ${{ matrix.go }}-incus-bin path: | - ${{ format('{0}/bin', steps.go-env.outputs.GOPATH) }} + ${{ steps.go-env.outputs.GOBIN }} - name: Upload artifact (src) uses: actions/upload-artifact@v4