From 0c917e797474a16473dfc92b855832bfddbf2ffc Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Wed, 17 Jan 2024 23:40:41 +0200 Subject: [PATCH] Update go.yml minor tweaks to the embedded node code for generating the digest --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0ed6dc9..04070c2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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