GHA: Batch URIs to invalidate on Akamai

This commit is contained in:
aboyko
2023-11-17 10:39:51 -05:00
parent 03bb4509ff
commit ac1e509a43

View File

@@ -43,6 +43,12 @@ runs:
length=$new_length
fi
done
if [ $length -gt 0 ]; then
length=$((${#urls} - offset + 1))
echo "Last Batch from ${offset} of length ${length}"
batch=${urls:$offset:$length}
echo $batch
fi
else
echo "Executing single Purge command..."
akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $urls