From eb95662e41d20682e5abb3d06cf52b8b73cd989b Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 29 Feb 2024 03:05:25 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 807d5fd..6c7d9f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: #!/bin/bash package="edge/main/aarch64/dnsmasq" curl --show-error --fail --silent "https://pkgs.alpinelinux.org/package/$package" --output ./package_data.html - latest_tag=$(grep -A 3 -i version ./package_data.html | sed -E 's#.*>([0-9\.]+)-r[0-9]+#\1#g' | tail -1 | sed 's/^[ \t]*//;s/[ \t]*$//') + latest_tag=$(grep -A 3 -i \>version\< ./package_data.html | sed -E 's#.*>([0-9\.]+)-r[0-9]+#\1#g' | tail -1 | sed 's/^[ \t]*//;s/[ \t]*$//') [ -z "$latest_tag" ] && echo "Tag not found!" && exit 1 [[ "$latest_tag" = v* ]] && latest_tag="${latest_tag:1}" echo "Found tag: \"${latest_tag}\""