Explorar el Código

maint: ignore some command failure in workflows

wangweimin hace 3 años
padre
commit
dd2e8a6694
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      .github/workflows/release.yml
  2. 2 2
      .github/workflows/sync_repo.yml

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

@@ -46,10 +46,10 @@ jobs:
 
           cd pywebio-assets
           git add .
-          git commit -m "Build from https://github.com/wang0618/PyWebIO/commit/$GITHUB_SHA" || exit 0
+          git commit -m "Build from https://github.com/wang0618/PyWebIO/commit/$GITHUB_SHA" || true
           git tag $RELEASE_VERSION
 
           git push -u origin --tags
-          git push -u origin || exit 0
+          git push -u origin || true
         env:
           GH_TOKEN: ${{ secrets.ASSET_REPO_TOKEN }}

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

@@ -41,8 +41,8 @@ jobs:
           git config user.email "${ALIYUN_GIT_USER}"
           git config user.name "${ALIYUN_GIT_USER}"
           git commit --amend --no-edit
-          git push -f -u aliyun --tags || exit 0
-          git push -f -u aliyun || exit 0
+          git push -f -u aliyun --tags || true
+          git push -f -u aliyun || true
         env:
           ALIYUN_GIT_USER: ${{ secrets.ALIYUN_GIT_USER }}
           ALIYUN_GIT_PASSWORD: ${{ secrets.ALIYUN_GIT_PASSWORD }}