We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed1541 commit 8a7df17Copy full SHA for 8a7df17
.github/workflows/build-public-inbox.yml
@@ -47,6 +47,14 @@ jobs:
47
run: npm i -g @railway/cli
48
49
- name: Deploy
50
- run: railway up --service public-inbox
+ run: | # This script retries the deployment 3 times before failing because railway sometimes fails to deploy
51
+ n=0
52
+ until [ "$n" -ge 3 ]
53
+ do
54
+ railway up --service public-inbox && break
55
+ n=$((n+1))
56
+ echo "Retrying deployment... attempt $n"
57
+ sleep 10
58
+ done
59
env:
- RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
60
+ RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
0 commit comments