fix: openssl instead of cksum

This commit is contained in:
ange 2025-01-08 06:38:25 +00:00
parent b643965497
commit 2ab1c114bc
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -14,7 +14,7 @@ rm -f resp0.json
for artifact in $INPUT_PATH; do for artifact in $INPUT_PATH; do
content_length=$(stat -c '%s' "$artifact") content_length=$(stat -c '%s' "$artifact")
md5=$(cksum -amd5 --base64 --untagged "$artifact" | awk '{print $1}') md5="$(openssl md5 -binary README.md "$artifact" | base64)"
"${CURL[@]}" -XPUT -o resp1.json \ "${CURL[@]}" -XPUT -o resp1.json \
--header "x-actions-results-md5: $md5" \ --header "x-actions-results-md5: $md5" \
--header "x-tfs-filelength: $content_length" \ --header "x-tfs-filelength: $content_length" \