From 2ab1c114bcc8f1c7b7c224a624e3df447f966066 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 8 Jan 2025 06:38:25 +0000 Subject: [PATCH] fix: openssl instead of cksum --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6fdd1f0..ae98cb8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,7 @@ rm -f resp0.json for artifact in $INPUT_PATH; do 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 \ --header "x-actions-results-md5: $md5" \ --header "x-tfs-filelength: $content_length" \