瀏覽代碼

github: Don't fail if rm file list is empty.

Keir Fraser 3 年之前
父節點
當前提交
6bdb03415f
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 3 3
      .github/workflows/ci.yml
  2. 3 3
      .github/workflows/release.yml

+ 3 - 3
.github/workflows/ci.yml

@@ -114,9 +114,9 @@ jobs:
       run: |
         export VER=${{ steps.vars.outputs.sha_short }}
         unzip Greaseweazle-$VER-win.zip
-        find . -name 'api-ms-*' | xargs rm
-        find Greaseweazle-$VER/lib -name 'python*.dll' | xargs rm
-        find Greaseweazle-$VER/lib -name 'vcruntime140.dll' | xargs rm
+        find . -name 'api-ms-*' | xargs rm -f
+        find Greaseweazle-$VER/lib -name 'python*.dll' | xargs rm -f
+        find Greaseweazle-$VER/lib -name 'vcruntime140.dll' | xargs rm -f
         rm Greaseweazle-$VER-win.zip
         zip -r Greaseweazle-$VER-win.zip Greaseweazle-$VER
 

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

@@ -93,9 +93,9 @@ jobs:
       run: |
         export VER=${{ steps.vars.outputs.ref }}
         unzip Greaseweazle-$VER-win.zip
-        find . -name 'api-ms-*' | xargs rm
-        find Greaseweazle-$VER/lib -name 'python*.dll' | xargs rm
-        find Greaseweazle-$VER/lib -name 'vcruntime140.dll' | xargs rm
+        find . -name 'api-ms-*' | xargs rm -f
+        find Greaseweazle-$VER/lib -name 'python*.dll' | xargs rm -f
+        find Greaseweazle-$VER/lib -name 'vcruntime140.dll' | xargs rm -f
         rm Greaseweazle-$VER-win.zip
         zip -r Greaseweazle-$VER-win.zip Greaseweazle-$VER