From ac1e509a43a54dee426aa7ecbc20ffd16beb56d4 Mon Sep 17 00:00:00 2001 From: aboyko Date: Fri, 17 Nov 2023 10:39:51 -0500 Subject: [PATCH] GHA: Batch URIs to invalidate on Akamai --- .github/actions/akamai-purge-osx/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/akamai-purge-osx/action.yml b/.github/actions/akamai-purge-osx/action.yml index c33f054a6..fba2930e0 100644 --- a/.github/actions/akamai-purge-osx/action.yml +++ b/.github/actions/akamai-purge-osx/action.yml @@ -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