From f216d5462a410a97b55b322f1ed1f749ec7c85e4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 29 Feb 2024 03:08:13 +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 3e1e70c..53e0d9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: #!/bin/bash package="edge/community/aarch64/tor" 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}\""