소스 검색

workflow: ignore sync_repo.yml potential fail

wangweimin 5 년 전
부모
커밋
ce6830466c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .github/workflows/sync_repo.yml

+ 2 - 2
.github/workflows/sync_repo.yml

@@ -11,8 +11,8 @@ jobs:
           git fetch --unshallow origin
           git remote add aliyun "https://code.aliyun.com/wang0618/pywebio.git"
           git config credential.helper '!f() { sleep 1; echo "username=${ALIYUN_GIT_USER}"; echo "password=${ALIYUN_GIT_PASSWORD}"; }; f'
-          git push -f -u aliyun --tags
-          git push -f -u aliyun
+          git push -f -u aliyun --tags || exit 0
+          git push -f -u aliyun || exit 0
         env:
           ALIYUN_GIT_USER: ${{ secrets.ALIYUN_GIT_USER }}
           ALIYUN_GIT_PASSWORD: ${{ secrets.ALIYUN_GIT_PASSWORD }}