Update Build workflow

This commit is contained in:
Kroese
2026-05-25 19:20:46 +02:00
committed by GitHub
parent 00799b153b
commit e20e0fd39e
+7 -4
View File
@@ -23,10 +23,13 @@ jobs:
-
name: Get remote package data
run: |
set -e
latest_tag=$(curl -fsSL http://download.proxmox.com/debian/pve/dists/trixie/pve-no-subscription/binary-amd64/Packages.gz \
| zgrep -m1 -A1 '^Package: proxmox-ve$' | awk '/^Version:/ {print $2}')
echo "Found tag: \"${latest_tag}\""
set -e -o pipefail
VERSION=$(mktemp)
curl -fsSL http://download.proxmox.com/debian/pve/dists/trixie/pve-no-subscription/binary-amd64/Packages.gz -o "$VERSION"
latest_tag=$(gzip -dc "$VERSION" | awk '$1=="Package:"&&$2=="proxmox-ve"{f=1} f&&$1=="Version:"{print $2; exit}')
rm -f "$VERSION"
echo "Found tag: \"${latest_tag}\""
latest_tag="9.1.2"
latest_version="${latest_tag%-*}"
major="${latest_version%%.*}"
minor="${latest_version#*.}"