Skip to content

Commit 4de12a1

Browse files
mairasCopilot
andauthored
Update .github/workflows/remove-package.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a3cb739 commit 4de12a1

1 file changed

Lines changed: 42 additions & 3 deletions

File tree

.github/workflows/remove-package.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,53 @@ jobs:
108108
echo "Generating Release file for $DIST..."
109109
cd "dists/$DIST"
110110
111+
# Set Suite, Codename, and Description based on distribution
112+
case "$DIST" in
113+
stable)
114+
SUITE="stable"
115+
CODENAME="stable"
116+
DESCRIPTION="Hat Labs Stable APT Repository"
117+
;;
118+
unstable)
119+
SUITE="unstable"
120+
CODENAME="unstable"
121+
DESCRIPTION="Hat Labs Unstable APT Repository"
122+
;;
123+
bookworm-stable)
124+
SUITE="stable"
125+
CODENAME="bookworm"
126+
DESCRIPTION="Hat Labs Bookworm Stable APT Repository"
127+
;;
128+
bookworm-unstable)
129+
SUITE="unstable"
130+
CODENAME="bookworm"
131+
DESCRIPTION="Hat Labs Bookworm Unstable APT Repository"
132+
;;
133+
trixie-stable)
134+
SUITE="stable"
135+
CODENAME="trixie"
136+
DESCRIPTION="Hat Labs Trixie Stable APT Repository"
137+
;;
138+
trixie-unstable)
139+
SUITE="unstable"
140+
CODENAME="trixie"
141+
DESCRIPTION="Hat Labs Trixie Unstable APT Repository"
142+
;;
143+
*)
144+
SUITE="$DIST"
145+
CODENAME="$DIST"
146+
DESCRIPTION="Hat Labs APT Repository"
147+
;;
148+
esac
149+
111150
cat > Release <<EOF
112151
Origin: Hat Labs
113152
Label: Hat Labs
114-
Suite: $DIST
115-
Codename: $DIST
153+
Suite: $SUITE
154+
Codename: $CODENAME
116155
Architectures: arm64 all
117156
Components: main
118-
Description: Hat Labs APT Repository
157+
Description: $DESCRIPTION
119158
Date: $(date -Ru)
120159
EOF
121160

0 commit comments

Comments
 (0)