fix WORKFLOWRUNID

This commit is contained in:
ange 2025-02-01 12:19:54 +00:00
parent 4f4191df35
commit d96a758deb
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -33,8 +33,8 @@ function get_ids_from_token() {
mapfile -t ids \ mapfile -t ids \
< <(jq -Rr 'split(".")[1] | @base64d | fromjson | .scp | split(":")' <<< "$ACTIONS_RUNTIME_TOKEN") < <(jq -Rr 'split(".")[1] | @base64d | fromjson | .scp | split(":")' <<< "$ACTIONS_RUNTIME_TOKEN")
WORKFLOWRUNID="${ids[1]}" WORKFLOWRUNID="${ids[2]}"
WORKFLOWJOBRUNID="${ids[2]}" WORKFLOWJOBRUNID="${ids[3]}"
} }
[ -n "$INPUT_RETENTION_DAYS" ] && RETENTION=", \"retention_days\": $INPUT_RETENTION_DAYS" [ -n "$INPUT_RETENTION_DAYS" ] && RETENTION=", \"retention_days\": $INPUT_RETENTION_DAYS"