Fixed workflow syntax
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 4m49s

This commit is contained in:
Florian Weber 2025-01-11 11:35:48 +01:00
parent a0988516d4
commit 88d838d981
Signed by: f.weber
GPG Key ID: B162B599E31221C6

View File

@ -39,7 +39,7 @@ jobs:
response=$(curl -s -H "Authorization: Bearer $MODRINTH_TOKEN" https://api.modrinth.com/v2/project/illuvia-prime-project/version) response=$(curl -s -H "Authorization: Bearer $MODRINTH_TOKEN" https://api.modrinth.com/v2/project/illuvia-prime-project/version)
# Extract latest release version # Extract latest release version
latest_release=$(echo "$response" | jq -cr '[.[] | select(.status == "listed" and .version_type == "release")] | sort_by(.date_published) | last' latest_release=$(echo "$response" | jq -cr '[.[] | select(.status == "listed" and .version_type == "release")] | sort_by(.date_published) | last')
if [ -z "$latest_release" ]; then if [ -z "$latest_release" ]; then
echo "No release version found" echo "No release version found"