From 3a1d52a57883c5ce455c10b314d79e1258225ab8 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 17 Nov 2023 10:28:15 -0500 Subject: [PATCH] GHA: Batch URIs to invalidate on Akamai --- .github/actions/akamai-purge-osx/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/akamai-purge-osx/action.yml b/.github/actions/akamai-purge-osx/action.yml index 8689698ef..c33f054a6 100644 --- a/.github/actions/akamai-purge-osx/action.yml +++ b/.github/actions/akamai-purge-osx/action.yml @@ -31,9 +31,11 @@ runs: for idx in $indices do end=${idx%:*} + echo "Index: $end" new_length=$((end-start)) if [ $new_length -ge $MAX ]; then - batch=${urls:offset:length} + echo "Batch from ${offset} of length ${length}" + batch=${urls:$offset:$length} echo $batch start=$((offset + length)) length=$((end - start))