diff --git a/.github/workflows/production-smoke.yml b/.github/workflows/production-smoke.yml index 27261f1..d7f65a1 100644 --- a/.github/workflows/production-smoke.yml +++ b/.github/workflows/production-smoke.yml @@ -28,37 +28,60 @@ jobs: timeout-minutes: 20 permissions: {} steps: + # A new deploy reaches Cloudflare's edge locations over a minute or so; + # until then some requests still hit the previous version. Wait until the + # commit has been served several times in a row. - name: Wait for this commit to go live if: github.event_name == 'push' env: SHA: ${{ github.sha }} run: | want="${SHA:0:7}" - for attempt in $(seq 1 60); do + streak=0 + for attempt in $(seq 1 90); do live=$(curl -fsS -A "$UA" --max-time 10 "$SITE/" | sed -n 's/.*