Skip to content

Commit

Permalink
healthcheck step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Apr 8, 2024
1 parent 976ca6a commit b9e2dfd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ jobs:
needs: deploy
if: github.ref == 'refs/heads/develop'
steps:
- name: Health Check
run: |
response=$(curl -s ${{ secrets.HEALTHCHECK }})
if [[ "$response" == *"status: ok"* ]]; then
echo "Health check passed"
else
echo "Health check failed"
exit 1
fi
- name: URL Health Check
uses: Jtalk/url-health-check-action@v4
with:
url: ${{ secrets.HOST }}
retries: 5
wait: 10


0 comments on commit b9e2dfd

Please sign in to comment.