Browse Source

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

Keir Fraser 3 years ago
parent
commit
6bdb03415f
2 changed files with 6 additions and 6 deletions
  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