Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ jobs:
- name: Trigger JitPack build
run: |
TAG='${{ needs.release.outputs.tag }}'
echo "Requesting JitPack build for v${TAG}"
echo "Requesting JitPack build for ${TAG}"
curl -fsSL --max-time 10 "https://jitpack.io/org/fossify/commons/${TAG}/commons-${TAG}.pom" || true

- name: Wait for JitPack to finish
run: |
TAG='${{ needs.release.outputs.tag }}'
URL="https://jitpack.io/org/fossify/commons/${TAG}/commons-${TAG}.pom"

echo "Waiting for JitPack to build v${TAG}..."
sleep 120
for i in $(seq 1 30); do
echo "Attempt $i: checking ${URL}"
if curl -fsSIL --max-time 10 "${URL}" > /dev/null 2>&1; then
echo "Waiting for JitPack to build ${TAG}..."
sleep 240
for i in $(seq 1 13); do
echo "Attempt $i: checking ${URL}?check=${i}"
if curl -fsSIL --max-time 10 "${URL}?check=${i}" > /dev/null 2>&1; then
echo "JitPack build successful!"
exit 0
fi

sleep 30
sleep 60
done

echo "Timed out waiting for JitPack build after 15 minutes."
echo "Timed out waiting for JitPack build."
exit 1

dispatch_update:
Expand Down
Loading