Skip to content

Commit 086357b

Browse files
committed
ci: add failure detection for Railway deployment retries
1 parent dbea407 commit 086357b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-public-inbox.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,11 @@ jobs:
5656
echo "Retrying deployment... attempt $n"
5757
sleep 10
5858
done
59+
60+
# Check if all retries failed
61+
if [ "$n" -eq 3 ]; then
62+
echo "All deployment attempts failed"
63+
exit 1
64+
fi
5965
env:
60-
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
66+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

0 commit comments

Comments
 (0)