Fixed workflow syntax
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 4m49s
All checks were successful
Deploy Jekyll site to Pages / build (push) Successful in 4m49s
This commit is contained in:
parent
a0988516d4
commit
88d838d981
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user