Explorar o código

fix: 同步失败重试

chenxuuu %!s(int64=3) %!d(string=hai) anos
pai
achega
4191fde1c1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      .github/workflows/sync_from_gitee.yml

+ 2 - 1
.github/workflows/sync_from_gitee.yml

@@ -17,7 +17,8 @@ jobs:
     - name: sync from gitee
     - name: sync from gitee
       run: |
       run: |
         git remote add gitee https://gitee.com/openLuat/luatos-soc-air105.git
         git remote add gitee https://gitee.com/openLuat/luatos-soc-air105.git
-        git pull gitee master
+        sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
+        retry 'git pull gitee master'
     - name: Push changes
     - name: Push changes
       uses: ad-m/github-push-action@master
       uses: ad-m/github-push-action@master
       with:
       with: