From ce169096637cc8f71df0e4b45e2c48b5ca434065 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 6 Apr 2025 14:25:19 -0400 Subject: [PATCH] Keep only 3 unstables in repo --- .github/workflows/release-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 40ffa3e..749055d 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -144,7 +144,7 @@ jobs: fi # Only keep ${NKEEP} (4) unstables; we have to do this manually since reprepro doesn't have granularity for this at the component level if [[ ${COMPONENT} == "unstable" ]]; then - NKEEP=4 + NKEEP=3 # Get whatever the oldest version is; since these are dated, a simple numerical sort works LIST="$( sudo reprepro -b /srv/debian -C unstable list ${{ matrix.release }} | awk '{ print $NF }' | sort -rn | uniq )" COUNT=$( wc -l <<<"${LIST}" ) @@ -289,7 +289,7 @@ jobs: fi # Only keep ${NKEEP} (4) unstables; we have to do this manually since reprepro doesn't have granularity for this at the component level if [[ ${COMPONENT} == "unstable" ]]; then - NKEEP=4 + NKEEP=3 # Get whatever the oldest version is; since these are dated, a simple numerical sort works LIST="$( sudo reprepro -b /srv/ubuntu -C unstable list ${{ matrix.release }} | awk '{ print $NF }' | sort -rn | uniq )" COUNT=$( wc -l <<<"${LIST}" )