From ef79049976e88b847e0a4b64cd0570b395126f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Zbytovsk=C3=BD?= Date: Tue, 8 Oct 2024 12:14:59 +0200 Subject: [PATCH] wait message --- .github/workflows/ssr-check.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ssr-check.yml b/.github/workflows/ssr-check.yml index 844d90b6e..511474a9c 100644 --- a/.github/workflows/ssr-check.yml +++ b/.github/workflows/ssr-check.yml @@ -7,17 +7,21 @@ on: deployment_status: jobs: check-ssr: - if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' runs-on: ubuntu-latest steps: + - name: Skip SSR check + if: github.event_name != 'deployment_status' || github.event.deployment_status.state != 'success' + run: echo "Waiting for deployment to complete" - name: Check if node/6 is ssr rendered + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' run: | URL=$(echo ${{ github.event.deployment_status.environment_url }})/node/6 echo "Fetch the URL: $URL" - curl -s $URL | grep -q "Originally DetonĂ¡tor route (this message used for SSR check) " + curl -s $URL | grep -q "Originally DetonĂ¡tor route (this message used for SSR check)" if [ $? -eq 0 ]; then echo "Server-side rendering is working" else echo "Server-side rendering broken" exit 1 fi +