浏览代码

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 }}