remove index output as it is not available in re-upload situations
This commit is contained in:
parent
014b12e7fb
commit
7ccd313368
|
@ -39,7 +39,9 @@ while IFS= read -r f; do
|
||||||
ec=$?; if [ $ec -ne 0 ]; then exit $ec; fi
|
ec=$?; if [ $ec -ne 0 ]; then exit $ec; fi
|
||||||
output=$(rekor upload --artifact "$f" --signature "${dest_sig}" --pki-format x509 --public-key /tmp/public_key)
|
output=$(rekor upload --artifact "$f" --signature "${dest_sig}" --pki-format x509 --public-key /tmp/public_key)
|
||||||
ec=$?; echo "$output"; if [ $ec -ne 0 ]; then exit $ec; fi
|
ec=$?; echo "$output"; if [ $ec -ne 0 ]; then exit $ec; fi
|
||||||
echo "INDEX_${i}=$(echo "$output"|cut -d, -f1|cut -d\ -f5)" >> "${GITHUB_OUTPUT}"
|
# Index will not be there if the entry already exists
|
||||||
|
# echo "INDEX_${i}=$(echo "$output"|cut -d, -f1|cut -d\ -f5)" >> "${GITHUB_OUTPUT}"
|
||||||
|
# The parsing, though, is identical
|
||||||
echo "URL_${i}=$(echo "$output"|cut -d: -f2-|cut -d\ -f2)" >> "${GITHUB_OUTPUT}"
|
echo "URL_${i}=$(echo "$output"|cut -d: -f2-|cut -d\ -f2)" >> "${GITHUB_OUTPUT}"
|
||||||
echo "SOURCE_${i}=${f}" >> "${GITHUB_OUTPUT}"
|
echo "SOURCE_${i}=${f}" >> "${GITHUB_OUTPUT}"
|
||||||
echo "SIG_${i}=${dest_sig}" >> "${GITHUB_OUTPUT}"
|
echo "SIG_${i}=${dest_sig}" >> "${GITHUB_OUTPUT}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user