Implement retry for check

This commit is contained in:
Gabriel Augendre 2022-09-28 01:45:08 +02:00
parent 9f68a01705
commit 36b092c800

View file

@ -36,5 +36,9 @@ jobs:
echo "${{ secrets.DEPLOY_KEY }}" > $TEMP
ssh -o StrictHostKeyChecking=no -i $TEMP -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update
- name: Check
run: |
curl --fail https://gabnotes.org
uses: nick-fields/retry@v2
with:
timeout_seconds: 30
max_attempts: 5
retry_wait_seconds: 2
command: curl -sSL --fail -m 10 https://gabnotes.org