File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ jobs:
194194 echo "version=$(cat ./distributions/${{ inputs.distribution }}/dist/**/metadata.json | jq '.version')" >> "$GITHUB_OUTPUT"
195195 echo "types=$(cat ./distributions/${{ inputs.distribution }}/dist/**/artifacts.json | jq '[.[].type]' | tr -d '\n' )" >> "$GITHUB_OUTPUT"
196196
197- os=$(cat ./distributions/${{ inputs.distribution }}/dist/**/metadata. json | jq -r '.runtime .goos')
198- arch=$(cat ./distributions/${{ inputs.distribution }}/dist/**/metadata. json | jq -r '.runtime .goarch')
197+ os=$(cat ./artifacts. json | jq -r '.[] | select(.name | contains(".tar.gz")) | .goos')
198+ arch=$(cat ./artifacts. json | jq -r '.[] | select(.name | contains(".tar.gz")) | .goarch')
199199 echo "arch=$os-$arch" >> "$GITHUB_OUTPUT"
200200
201201 - name : Debugging
You can’t perform that action at this time.
0 commit comments