Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
minor tweaks to the embedded node code for generating the digest
  • Loading branch information
alexlovelltroy committed Jan 17, 2024
1 parent bb98fba commit 0c917e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Process goreleaser output
id: process_goreleaser_output
run: |
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 'const artifacts = ${{ steps.goreleaser.outputs.artifacts }}' > process.js
echo "const firstNonNullDigest = artifacts.find(artifact => artifact.extra && artifact.extra.Digest != null)?.extra.Digest;" >> process.js
echo "console.log(firstNonNullDigest);" >> process.js
echo "fs.writeFileSync('digest.txt', firstNonNullDigest);" >> process.js
node process.js
Expand Down

0 comments on commit 0c917e7

Please sign in to comment.