Implement retry for check
This commit is contained in:
parent
9f68a01705
commit
36b092c800
1 changed files with 6 additions and 2 deletions
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
|
@ -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
|
||||
|
|
Reference in a new issue