fix: openssl instead of cksum
This commit is contained in:
parent
b643965497
commit
2ab1c114bc
@ -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" \
|
||||||
|
Loading…
Reference in New Issue
Block a user