Skip to content

Commit

Permalink
Update .github/scripts/delete-old-cloudsmith-artifacts.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Marlon (Esolitos) Saglia <[email protected]>
  • Loading branch information
hakonhall and esolitos authored Oct 2, 2024
1 parent 5c1b2c5 commit e1fc4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/delete-old-cloudsmith-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1fc4ff

Please sign in to comment.