GHA: Batch URIs to invalidate on Akamai
This commit is contained in:
4
.github/actions/akamai-purge-osx/action.yml
vendored
4
.github/actions/akamai-purge-osx/action.yml
vendored
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user