From 36b092c800823434e3c5970cafddb667e4f437b3 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 28 Sep 2022 01:45:08 +0200 Subject: [PATCH] Implement retry for check --- .github/workflows/publish.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e3ae41d..e040b56 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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