From 3cc056fd46908effb406d83e76a5be41c85966c7 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 30 Mar 2022 16:37:37 +0200 Subject: [PATCH] Update updater script --- .github/workflows/updater.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 5fca95d..eed81b2 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -17,7 +17,7 @@ current_version=$(cat manifest.json | jq -j '.version|split("~")[0]') repo=$(cat manifest.json | jq -j '.upstream.code|split("https://git.spip.net/")[1]') # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) -version=$(curl --silent "https://git.spip.net/api/v1/repos/spip/spip/tags" | jq -r '.[] | .name' | sort -V | tail -1) +version=$(curl --silent "https://git.spip.net/api/v1/repos/spip/spip/tags" | jq -r '.[] | .name' | grep -v "alpha" | grep -v "beta" | grep -v "rc" | sort -V | tail -1) assets=("https://files.spip.net/spip/archives/spip-$version.zip") # Later down the script, we assume the version has only digits and dots @@ -27,11 +27,6 @@ if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then version=${version:1} fi -if [[ $version == *"-alpha" || $version == *"-beta" ]]; then - echo "::warning ::This is not a release version" - exit 0 -fi - # Setting up the environment variables echo "Current version: $current_version" echo "Latest release from upstream: $version"