Skip to content

Commit 9973df4

Browse files
committed
fixup! feat: 1 CI jobs to pack chocolatey package, 1 CI job to push it
1 parent e6f9d16 commit 9973df4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build_release_assets.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

.github/workflows/tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)