mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
FLATHUB_PUSH: fix prerelease fetch [skip ci]
This commit is contained in:
parent
a5bb5a03a0
commit
44754749a8
|
@ -34,8 +34,8 @@ fi
|
||||||
git clone --depth=1 --recursive "https://github.com/$flathub_target_repo.git" "$gits_folder/flathub"
|
git clone --depth=1 --recursive "https://github.com/$flathub_target_repo.git" "$gits_folder/flathub"
|
||||||
git clone --depth=1 --recursive "https://github.com/$retrodeck_repo.git" "$gits_folder/RetroDECK"
|
git clone --depth=1 --recursive "https://github.com/$retrodeck_repo.git" "$gits_folder/RetroDECK"
|
||||||
|
|
||||||
# Get the latest release name, preferring prereleases if available
|
# Get the latest release name, preferring prereleases if available and published after 2025-01-01
|
||||||
relname=$(curl -s https://api.github.com/repos/$retrodeck_repo/releases | jq -r '[.[] | select(.prerelease == true)][0].tag_name // empty')
|
relname=$(curl -s https://api.github.com/repos/$retrodeck_repo/releases | jq -r '[.[] | select(.prerelease == true and (.published_at | fromdateiso8601) > (strptime("2025-01-01T00:00:00Z") | mktime))][0].tag_name // empty')
|
||||||
if [ -z "$relname" ]; then
|
if [ -z "$relname" ]; then
|
||||||
relname=$(curl -s https://api.github.com/repos/$retrodeck_repo/releases/latest | jq -r .tag_name)
|
relname=$(curl -s https://api.github.com/repos/$retrodeck_repo/releases/latest | jq -r .tag_name)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue