Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
nodejs needs import love
  • Loading branch information
alexlovelltroy committed Jan 17, 2024
1 parent 0c917e7 commit 781c91b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
- name: Process goreleaser output
id: process_goreleaser_output
run: |
echo 'const artifacts = ${{ steps.goreleaser.outputs.artifacts }}' > process.js
echo "const fs = require('fs');" > 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
Expand Down

0 comments on commit 781c91b

Please sign in to comment.