From 146a80ccb2c96a520685d213a93ba804457dfd58 Mon Sep 17 00:00:00 2001 From: gal-legit Date: Mon, 21 Nov 2022 22:51:42 +0200 Subject: [PATCH] add the new instructions for the all-in-all snippet as well --- internal/builders/generic/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/builders/generic/README.md b/internal/builders/generic/README.md index 120466caf7..0b71ffcec1 100644 --- a/internal/builders/generic/README.md +++ b/internal/builders/generic/README.md @@ -397,8 +397,12 @@ jobs: run: | set -euo pipefail + hashes=$(echo $ARTIFACTS | jq --raw-output '.[] | {name, "digest": (.extra.Digest // .extra.Checksum)} | select(.digest) | {digest} + {name} | join(" ") | sub("^sha256:";"")' | base64 -w0) + if test "$hashes" = ""; then # goreleaser < v1.13.0 checksum_file=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Checksum") | .path') - echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT" + hashes=$(cat $checksum_file | base64 -w0) + fi + echo "hashes=$hashes" >> $GITHUB_OUTPUT provenance: needs: [goreleaser]