Skip to content

Commit 20d851f

Browse files
committed
Fix JitPack build status monitoring
- Handle both 'error' and 'Error' status values from JitPack API - Add proper error handling for empty status responses - Improve unknown status messages with manual check links - Prevent infinite loops when builds fail
1 parent 51842c0 commit 20d851f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
echo "🔗 Build log: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
189189
exit 0
190190
;;
191-
"error")
191+
"error"|"Error")
192192
echo "❌ JitPack build failed!"
193193
echo "🔗 Check logs at: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
194194
exit 1
@@ -199,8 +199,12 @@ jobs:
199199
"tagNotFound")
200200
echo "⚠️ Tag not found yet, waiting for Git sync..."
201201
;;
202+
"")
203+
echo "⚠️ Unable to parse status from response"
204+
;;
202205
*)
203-
echo "⏳ Build status: $status"
206+
echo "⚠️ Unknown build status: $status"
207+
echo "🔗 Check manually at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
204208
;;
205209
esac
206210

0 commit comments

Comments
 (0)