Skip to content

Commit

Permalink
cat artifacts.json
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 12, 2024
1 parent 2088c24 commit 42b57c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-publish-develop-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ jobs:
run: |
# need to check if artifacts.json exists because goreleaser splits the build
if [[ -f dist/artifacts.json ]]; then
ls dist
artifact_path="dist/artifacts.json"
else
ls dist/linux_${{ matrix.goarch }}
artifact_path="dist/linux_${{ matrix.goarch }}/artifacts.json"
cat dist/linux_${{ matrix.goarch }}/artifacts.json
fi
echo "### Docker Images" | tee -a "$GITHUB_STEP_SUMMARY"
jq -r '.[] | select(.type == "Docker Image") | "`\(.goarch)-image`: \(.name)"' ${artifact_path} >> output.txt
Expand Down

0 comments on commit 42b57c7

Please sign in to comment.