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