Skip to content

Commit b40f5f7

Browse files
committed
Fix JitPack build success detection
- Handle JitPack API response where status=ok but message='Not found' - This actually indicates successful build completion - Prevents workflow from timing out when build has succeeded
1 parent b1a1189 commit b40f5f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,15 @@ jobs:
163163
status_response=$(curl -s "https://jitpack.io/api/builds/com.github.wassertim/dynamodb-toolkit/v$NEW_VERSION")
164164
echo "Status response: $status_response"
165165
166-
if [[ "$status_response" == *'"status":"ok"'* ]]; then
166+
if [[ "$status_response" == *'"status":"ok"'* ]] && [[ "$status_response" != *'"message":"Not found"'* ]]; then
167167
echo "✅ JitPack build completed successfully!"
168168
echo "📦 Artifact available at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
169169
exit 0
170+
elif [[ "$status_response" == *'"status":"ok"'* ]] && [[ "$status_response" == *'"message":"Not found"'* ]]; then
171+
echo "✅ JitPack build completed successfully (build finished, artifacts processed)!"
172+
echo "📦 Artifact available at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
173+
echo "🔗 Build log: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
174+
exit 0
170175
elif [[ "$status_response" == *'"status":"error"'* ]]; then
171176
echo "❌ JitPack build failed!"
172177
echo "🔗 Check logs at: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"

0 commit comments

Comments
 (0)