From 15ec2c883ce6c59f301ab8648206e1363a86e9ff Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 17 Dec 2024 09:48:38 +0100 Subject: [PATCH] Add names to the download targets and fix small bug --- .github/workflows/pull-mirrors-from-db.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-mirrors-from-db.yml b/.github/workflows/pull-mirrors-from-db.yml index cd52ec24..58a83c80 100644 --- a/.github/workflows/pull-mirrors-from-db.yml +++ b/.github/workflows/pull-mirrors-from-db.yml @@ -32,7 +32,17 @@ jobs: echo "|--------|---------|-----:|" >> ${DOCUMENT} for storage in dl apt archive oldarchive; do size=$(curl -s https://rsync.armbian.com/$storage/size.txt) - echo "| Images | \`rsync -av rsync://rsync.armbian.com/$storage\` | $size |" >> ${DOCUMENT} + case "$storage" in + "dl") + TEXT="Current images";; + "apt") + TEXT="Packages";; + "archive") + TEXT="Old images";; + *) + TEXT="Very old images"; + esac + echo "| $TEXT | \`rsync -av rsync://rsync.armbian.com/$storage\` | $size |" >> ${DOCUMENT} done echo " 1. Chose target and setup HTTP/HTTPS hostname @@ -40,7 +50,7 @@ jobs: 3. [Inform us](https://www.armbian.com/contact/) " >> ${DOCUMENT} - echo "## Current Mirrors" > ${DOCUMENT} + echo "## Current Mirrors" >> ${DOCUMENT} echo "" >> ${DOCUMENT} echo "| Site | Time Zone | Flag | Speed | Packages | Images | Archive | Rsync |" > ${DOCUMENT}