Skip to content

Commit b7d360c

Browse files
committed
use find with pipe
1 parent 7c2c4d9 commit b7d360c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: dotnet test demo/Demo.sln -c Release
5151

5252
- name: Prepare for Github Pages deployment
53-
run: rm -r .gitignore
53+
run: find output/demo -name "*.gitignore" -type f -print0 | xargs -0 /bin/rm -f
5454

5555
- name: Deploy demo to Github Pages
5656
uses: jamesives/[email protected]

.github/workflows/nuget-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
- name: Push package to NuGet
6060
run: dotnet nuget push output/nuget/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
6161

62-
- name: Prepare for Github Pages deployment
63-
run: rm -r .gitignore
62+
- name: Prepare for Github Pages deployment
63+
run: find output/demo -name "*.gitignore" -type f -print0 | xargs -0 /bin/rm -f
6464

6565
- name: Deploy demo to Github Pages
6666
uses: jamesives/[email protected]

0 commit comments

Comments
 (0)