diff --git a/.github/scripts/delete-old-cloudsmith-artifacts.sh b/.github/scripts/delete-old-cloudsmith-artifacts.sh index 7695b429ff13..cc497af0ac76 100755 --- a/.github/scripts/delete-old-cloudsmith-artifacts.sh +++ b/.github/scripts/delete-old-cloudsmith-artifacts.sh @@ -29,7 +29,7 @@ if [[ -z "$VESPA_VERSIONS" ]]; then fi # Note: Allow the last Vespa 7 release to remain in the repo! -VERSIONS_TO_DELETE=$(echo "${VESPA_VERSIONS}" | awk '/[0-9].*\.[0-9].*\.[0-9].*/{print $2}' | sort -V | grep -v "${LAST_VESPA_7_RELEASE}" | head -n -$MAX_NUMBER_OF_RELEASES) +VERSIONS_TO_DELETE=$(echo "${VESPA_VERSIONS}" | awk '/[8-9]\.[0-9]+\.[0-9]+/{print $2}' | sort -V | head -n -$MAX_NUMBER_OF_RELEASES) if [[ -z "$VERSIONS_TO_DELETE" ]]; then echo "No old RPM versions to delete found. Exiting." exit 0