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 afb338a commit aa9b93eCopy full SHA for aa9b93e
.github/workflows/build.yml
@@ -247,12 +247,15 @@ jobs:
247
248
- name: Test
249
if: matrix.should_run == true
250
+ timeout-minutes: 120
251
shell: bash
252
env:
253
PGHOST: localhost
254
run: |
255
i=1
- while [ "$i" -le 10 ]; do
256
+ attempts=1
257
+ ${{ (github.ref == 'refs/heads/stable' || startsWith(github.ref, 'refs/tags/v')) }} && attempts=3
258
+ while [ "$i" -le "$attempts" ]; do
259
if ./simplexmq-test; then
260
break
261
else
@@ -261,7 +264,7 @@ jobs:
264
sleep 1
262
265
fi
263
266
done
- if [ "$i" -gt 10 ]; then
- echo "All 10 attempts failed."
267
+ if [ "$i" -gt "$attempts" ]; then
268
+ echo "All "$attempts" attempts failed."
269
exit 1
270
0 commit comments