From 980f0cca1a3f30814941812556407d8df2c33987 Mon Sep 17 00:00:00 2001 From: aboyko Date: Sun, 28 Apr 2024 14:15:52 -0400 Subject: [PATCH] [GHA] Akamai cache purging adoption for linux runner - adjust script --- .github/actions/akamai-purge-osx/action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/akamai-purge-osx/action.yml b/.github/actions/akamai-purge-osx/action.yml index 7914efe65..537ba89f9 100644 --- a/.github/actions/akamai-purge-osx/action.yml +++ b/.github/actions/akamai-purge-osx/action.yml @@ -17,7 +17,7 @@ runs: echo -e "${EDGERC}" > ~/.edgerc wget -O akamai https://github.com/akamai/cli/releases/download/v1.5.6/akamai-v1.5.6-linuxamd64 chmod +x akamai - akamai install purge + ./akamai install purge - name: Purge shell: bash run: | @@ -35,7 +35,7 @@ runs: if [ $new_length -ge $MAX ]; then echo "Batch from offset ${offset} of length ${length}" batch=${urls:$offset:$length} - akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $batch + ./akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $batch offset=$((offset + length)) length=$((end - offset)) else @@ -46,16 +46,16 @@ runs: length=$((${#urls} - offset + 1)) echo "Last Batch from offset ${offset} of length ${length}" batch=${urls:$offset:$length} - akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $batch + ./akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $batch fi else echo "Executing single Purge command..." - akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $urls + ./akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} $urls fi - name: Cleanup if: ${{ always() }} shell: bash run: | rm -f ~/.edgerc - akamai uninstall purge - rm -f akamai-v1.5.6-linuxamd64 + ./akamai uninstall purge + rm -f ./akamai