fix: mark rolling 'release' as pre-release so v1.0.0 shows as latest
This commit is contained in:
@@ -94,11 +94,11 @@ jobs:
|
|||||||
-H "Authorization: token ${GITEA_TOKEN}"
|
-H "Authorization: token ${GITEA_TOKEN}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Update the release body to reflect the current version
|
# Update the release body and ensure it stays marked as pre-release
|
||||||
curl -s -X PATCH "${API_URL}/repos/${REPO}/releases/${RELEASE_ID}" \
|
curl -s -X PATCH "${API_URL}/repos/${REPO}/releases/${RELEASE_ID}" \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"body\": \"Rolling release — always points to the latest update manifest (currently v${VERSION}). Do not delete.\"}"
|
-d "{\"body\": \"Rolling release — always points to the latest update manifest (currently v${VERSION}). Do not delete.\", \"prerelease\": true}"
|
||||||
|
|
||||||
else
|
else
|
||||||
# Create the rolling release for the first time
|
# Create the rolling release for the first time
|
||||||
@@ -118,7 +118,7 @@ jobs:
|
|||||||
\"name\": \"Update Manifest (rolling)\",
|
\"name\": \"Update Manifest (rolling)\",
|
||||||
\"body\": \"Rolling release — always points to the latest update manifest (currently v${VERSION}). Do not delete.\",
|
\"body\": \"Rolling release — always points to the latest update manifest (currently v${VERSION}). Do not delete.\",
|
||||||
\"draft\": false,
|
\"draft\": false,
|
||||||
\"prerelease\": false
|
\"prerelease\": true
|
||||||
}")
|
}")
|
||||||
|
|
||||||
RELEASE_ID=$(echo "${RELEASE}" | jq -r '.id')
|
RELEASE_ID=$(echo "${RELEASE}" | jq -r '.id')
|
||||||
|
|||||||
Reference in New Issue
Block a user