Fix workflow to handle no existing releases
Remove -f flag from curl so 404 on /releases/latest doesn't fail the script when there are no releases yet. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b8104d75ad
commit
f11f8a4e89
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
else
|
||||
# Auto-increment patch version from latest release
|
||||
echo "Fetching latest release..."
|
||||
LATEST=$(curl -sf "https://forge.ops.eblu.me/api/v1/repos/eblume/blumeops/releases/latest" | jq -r '.tag_name // empty')
|
||||
LATEST=$(curl -s "https://forge.ops.eblu.me/api/v1/repos/eblume/blumeops/releases/latest" | jq -r '.tag_name // empty' || true)
|
||||
|
||||
if [ -z "$LATEST" ]; then
|
||||
VERSION="v1.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue