GHA: Batch URIs to invalidate on Akamai

This commit is contained in:
aboyko
2023-11-17 10:28:15 -05:00
parent 61b460e97f
commit 3a1d52a578

View File

@@ -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))