@@ -290,23 +290,23 @@ jobs:
290290 - name : Remove MediaElement package if that is not being released
291291 if : startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-mediaelement')
292292 run : |
293- ${{ github.workspace }}/packages/**/* .nupkg | Where-Object { $_ -notmatch "CommunityToolkit.Maui.MediaElement" } | Remove-Item -Force
293+ Get-ChildItem -Path " ${{ github.workspace }}/packages" -Recurse -Filter "* .nupkg" | Where-Object { $_ -notmatch "CommunityToolkit.Maui.MediaElement" } | Remove-Item -Force
294294
295295 - name : Remove Camera package if that is not being released
296296 if : startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-camera')
297297 run : |
298- ${{ github.workspace }}/packages/**/* .nupkg | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Camera" } | Remove-Item -Force
298+ Get-ChildItem -Path " ${{ github.workspace }}/packages" -Recurse -Filter "* .nupkg" | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Camera" } | Remove-Item -Force
299299
300300 - name : Remove Maps package if that is not being released
301301 if : startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, '-maps')
302302 run : |
303- ${{ github.workspace }}/packages/**/* .nupkg | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Maps" } | Remove-Item -Force
303+ Get-ChildItem -Path " ${{ github.workspace }}/packages" -Recurse -Filter "* .nupkg" | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Maps" } | Remove-Item -Force
304304
305305 - name : Remove Core & Main package if that is not being released
306306 if : startsWith(github.ref, 'refs/tags/') && (!endsWith(github.ref, '-mediaelement') && !endsWith(github.ref, '-camera') && !endsWith(github.ref, '-maps'))
307307 run : |
308- ${{ github.workspace }}/packages/**/* .nupkg | Where-Object { $_ -notmatch "CommunityToolkit.Maui" } | Remove-Item -Force
309- ${{ github.workspace }}/packages/**/* .nupkg | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Core" } | Remove-Item -Force
308+ Get-ChildItem -Path " ${{ github.workspace }}/packages" -Recurse -Filter "* .nupkg" | Where-Object { $_ -notmatch "CommunityToolkit.Maui" } | Remove-Item -Force
309+ Get-ChildItem -Path " ${{ github.workspace }}/packages" -Recurse -Filter "* .nupkg" | Where-Object { $_ -notmatch "CommunityToolkit.Maui.Core" } | Remove-Item -Force
310310
311311 - name : Install Signing Tool
312312 run : dotnet tool install --tool-path ./tools sign --version 0.9.1-beta.23356.1
0 commit comments