From c7c6abfea7c41e036aa58c6cb2556369ffa5a94f Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 17 Nov 2023 11:25:57 -0500 Subject: [PATCH] GHA: Batch URIs to invalidate on Akamai --- .github/actions/akamai-purge-osx/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/akamai-purge-osx/action.yml b/.github/actions/akamai-purge-osx/action.yml index 4182be747..b91ae53bc 100644 --- a/.github/actions/akamai-purge-osx/action.yml +++ b/.github/actions/akamai-purge-osx/action.yml @@ -32,13 +32,13 @@ runs: do end=${idx%:*} echo "Index ${end}" - new_length=$((end-start)) + new_length=$((end - offset)) if [ $new_length -ge $MAX ]; then echo "Batch from ${offset} of length ${length}" batch=${urls:$offset:$length} echo $batch offset=$((offset + length)) - length=$(($end - $offset)) + length=$((end - offset)) else length=$new_length fi