From d00e735e0be56c9bcbbac53c91957eecb7d4ce64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Mon, 24 Feb 2025 04:54:20 -0500 Subject: [PATCH] fix(github/update): using correct entry name for beta releases --- .github/update.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/update.sh b/.github/update.sh index 08e2e8e..e9c6055 100755 --- a/.github/update.sh +++ b/.github/update.sh @@ -81,8 +81,11 @@ try_to_update() { prefetch_output=$(nix store prefetch-file --unpack --hash-type sha256 --json "$download_url") sha256=$(echo "$prefetch_output" | jq -r '.hash') + entry_name="$version_name" semver=$version + if [ "$version_name" = "twilight" ]; then + entry_name="twilight-official" semver="$twilight_version_name" short_sha1="$(echo "$remote_sha1" | cut -c1-7)" @@ -126,7 +129,7 @@ try_to_update() { done fi - jq ".[\"$version_name-official\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp + jq ".[\"$entry_name\"][\"$arch-linux\"] = {\"version\":\"$semver\",\"sha1\":\"$remote_sha1\",\"url\":\"$download_url\",\"sha256\":\"$sha256\"}" sources.json.tmp mv sources.json.tmp sources.json echo "$version_name was updated to $version"