Просмотр исходного кода

fix: ci加个重试,防止clone失败导致报错

chenxuuu 4 лет назад
Родитель
Сommit
3ee569a4ee
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      .github/workflows/air101.yml

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

@@ -31,8 +31,9 @@ jobs:
       env:
         AIR101REPO: ${{ secrets.AIR101REPO }}
       run: |
+        sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
         cd ..
-        git clone --depth=1 --branch=master ${AIR101REPO} air101
+        retry 'git clone --depth=1 --branch=master ${AIR101REPO} air101'
     - name: make
       run: |
         cd ../air101