From 75cda8a2828405255d7c1f1594ca33e68d0f9ec3 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 17 Nov 2023 10:43:20 -0500 Subject: [PATCH] GHA: Batch URIs to invalidate on Akamai --- .github/actions/akamai-purge-osx/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/akamai-purge-osx/action.yml b/.github/actions/akamai-purge-osx/action.yml index fba2930e0..6c6df039e 100644 --- a/.github/actions/akamai-purge-osx/action.yml +++ b/.github/actions/akamai-purge-osx/action.yml @@ -31,13 +31,12 @@ runs: for idx in $indices do end=${idx%:*} - echo "Index: $end" new_length=$((end-start)) if [ $new_length -ge $MAX ]; then echo "Batch from ${offset} of length ${length}" batch=${urls:$offset:$length} echo $batch - start=$((offset + length)) + offset=$((offset + length)) length=$((end - start)) else length=$new_length