diff --git a/.github/workflows/run-e2e-suite.yaml b/.github/workflows/run-e2e-suite.yaml index 63d12c6dd..621fe6252 100644 --- a/.github/workflows/run-e2e-suite.yaml +++ b/.github/workflows/run-e2e-suite.yaml @@ -126,6 +126,9 @@ jobs: - name: Cleanup e2e test image if: always() && ${{ inputs.MANAGEMENT_CLUSTER_ENVIRONMENT == 'eks' }} run: | + sudo apt-get update + sudo apt-get install -y gh jq + IMAGE_URL="$(gh api /orgs/rancher/packages/container/turtles-e2e/versions | jq ".[] | select( .metadata.container.tags | contains([\"$TAG\"])) | .url" | sed 's/\"//g')" gh api -X DELETE "$IMAGE_URL" - name: Send failed status to slack