Skip to content

Commit 702f375

Browse files
committed
Fix JitPack status detection for spaced JSON format
- JitPack API returns 'status' : 'ok' with spaces around colon - Update pattern matching to handle spaced JSON format - Should now properly detect build success/error/building states
1 parent 4c884c6 commit 702f375

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,16 @@ jobs:
165165
status_response=$(curl -s "https://jitpack.io/api/builds/com.github.wassertim/dynamodb-toolkit/v$NEW_VERSION")
166166
echo "Status response: $status_response"
167167
168-
if [[ "$status_response" == *'"status":"ok"'* ]]; then
168+
if [[ "$status_response" == *'"status" : "ok"'* ]]; then
169169
echo "✅ JitPack build completed successfully!"
170170
echo "📦 Artifact available at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
171171
echo "🔗 Build log: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
172172
exit 0
173-
elif [[ "$status_response" == *'"status":"error"'* ]]; then
173+
elif [[ "$status_response" == *'"status" : "error"'* ]]; then
174174
echo "❌ JitPack build failed!"
175175
echo "🔗 Check logs at: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
176176
exit 1
177-
elif [[ "$status_response" == *'"status":"building"'* ]]; then
177+
elif [[ "$status_response" == *'"status" : "building"'* ]]; then
178178
echo "⏳ Build in progress..."
179179
else
180180
echo "⏳ Build queued or starting..."

0 commit comments

Comments
 (0)