File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -244,11 +244,14 @@ jobs:
244244 if : startsWith(matrix.os, 'windows-')
245245 shell : bash
246246 run : |
247- windows_zip=$(find packages -type f -name "*.zip" | grep "windows" | head -n 1)
247+ windows_zip=$(find packages -maxdepth 1 - type f -name "*.zip" | grep "windows" | head -n 1)
248248 scripts/chocolatey/pack $windows_zip packages
249249 # test the package -> cf https://docs.chocolatey.org/en-us/create/create-packages/#testing-your-package
250250 cd packages
251251 choco install ggshield --debug --verbose --source . --noop
252+ env :
253+ # otherwise grep fails on Windows
254+ LC_ALL : en_US.utf8
252255
253256 - name : Override base Docker image used for functional tests on Windows
254257 if : matrix.os == 'windows-2022'
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ jobs:
167167
168168 - name : Push to Chocolatey
169169 run : |
170- nupkg_path=$(find packages -type f -name "*.nupkg" | head -n 1)
170+ nupkg_path=$(find packages -maxdepth 1 - type f -name "*.nupkg" | head -n 1)
171171 scripts/chocolatey/push $nupkg_path
172172 env :
173173 CHOCOLATEY_API_KEY : ${{ secrets.CHOCOLATEY_API_KEY }}
You can’t perform that action at this time.
0 commit comments