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
|
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
|
ssh -o StrictHostKeyChecking=no -i $TEMP -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
uses: nick-fields/retry@v2
|
||||||
curl --fail https://gabnotes.org
|
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