소스 검색

fix: "nothing to commit" error when push to asset repo

wangweimin 4 년 전
부모
커밋
6cb26a66d6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .github/workflows/release.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"
+          git commit -m "Build from https://github.com/wang0618/PyWebIO/commit/$GITHUB_SHA" || exit 0
           git tag $RELEASE_VERSION
 
           git push -u origin --tags
-          git push -u origin
+          git push -u origin || exit 0
         env:
           GH_TOKEN: ${{ secrets.ASSET_REPO_TOKEN }}