Skip to content

Commit

Permalink
wait message
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Oct 8, 2024
1 parent 47a1617 commit ef79049
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ssr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef79049

Please sign in to comment.