From d96a758deb7d6083753affdeb08bf0b7a66a3081 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 1 Feb 2025 12:19:54 +0000 Subject: [PATCH] fix WORKFLOWRUNID --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e5e710e..11b511f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,8 +33,8 @@ function get_ids_from_token() { mapfile -t ids \ < <(jq -Rr 'split(".")[1] | @base64d | fromjson | .scp | split(":")' <<< "$ACTIONS_RUNTIME_TOKEN") - WORKFLOWRUNID="${ids[1]}" - WORKFLOWJOBRUNID="${ids[2]}" + WORKFLOWRUNID="${ids[2]}" + WORKFLOWJOBRUNID="${ids[3]}" } [ -n "$INPUT_RETENTION_DAYS" ] && RETENTION=", \"retention_days\": $INPUT_RETENTION_DAYS"