GHA: Batch URIs to invalidate on Akamai

This commit is contained in:
aboyko
2023-11-17 11:25:57 -05:00
parent 0d082c458e
commit c7c6abfea7

View File

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