diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 1fdd34d..9b823ba 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -23,6 +23,10 @@ repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1] version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | .tag_name' | sort -V | tail -1) assets=($(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '[ .[] | select(.tag_name=="'$version'").assets[].browser_download_url ] | join(" ") | @sh' | tr -d "'")) +if [[ ${version:0:1} == "v" || ${version:0:1} == "V" ]]; then + version=${version:1} +fi + # Setting up the environment variables echo "Current version: $current_version" echo "Latest release from upstream: $version" diff --git a/README.md b/README.md index 4667501..19773b9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Komga is a free and open source comics/mangas server. - Download book files -**Shipped version:** 0.126.0~ynh3 +**Shipped version:** 0.126.0~ynh4 **Demo:** https://demo.komga.org diff --git a/README_fr.md b/README_fr.md index b7bfed6..2147dc5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -25,7 +25,7 @@ Komga is a free and open source comics/mangas server. - Download book files -**Version incluse :** 0.126.0~ynh3 +**Version incluse :** 0.126.0~ynh4 **Démo :** https://demo.komga.org diff --git a/manifest.json b/manifest.json index 1970d54..e188076 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Media server for your comics, manga and magazines", "fr": "Serveur multimédia pour vos bandes dessinées, mangas et magazines" }, - "version": "0.126.0~ynh3", + "version": "0.126.0~ynh4", "url": "https://komga.org", "upstream": { "license": "MIT",