Skip to content

Commit 96ef0c9

Browse files
authored
Merge pull request #4 from bitcoin-dev-project/ci/fix-deployment-failure-detection
ci: add failure detection for Railway deployment retries
2 parents dbea407 + 086357b commit 96ef0c9

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)