Skip to content

Commit

Permalink
Attempt alternative parsing of goreleaser outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Jan 17, 2024
1 parent c694164 commit bb98fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Process goreleaser output
id: process_goreleaser_output
run: |
echo "const artifacts = ${{ fromJson(steps.goreleaser.outputs.artifacts) }}" > process.js
echo "const artifacts = ${{ steps.goreleaser.outputs.artifacts }}" > process.js
echo "const firstNonNullDigest = artifacts.find(artifact => artifact.extra && artifacts.extra.Digest != null)?.extra.Digest;" >> process.js
echo "console.log(firstNonNullDigest);" >> process.js
echo "fs.writeFileSync('digest.txt', firstNonNullDigest);" >> process.js
Expand Down

0 comments on commit bb98fba

Please sign in to comment.