Skip to content

Commit db3a144

Browse files
author
Rohaan Hamid
committed
Fix Chocolatey push command to properly handle version trimming in PowerShell
1 parent 03d81bc commit db3a144

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ jobs:
137137
run: choco pack publishing/chocolatey/document-stitcher.nuspec --outputdirectory .
138138

139139
- name: Push to Chocolatey
140-
run: choco push document-stitcher.${{ github.event.inputs.tag }}.TrimStart('v').nupkg --source https://push.chocolatey.org/ --api-key ${{ secrets.CHOCOLATEY_API_KEY }}
140+
run: |
141+
$version = '${{ github.event.inputs.tag }}'.TrimStart('v')
142+
choco push document-stitcher.$version.nupkg --source https://push.chocolatey.org/ --api-key ${{ secrets.CHOCOLATEY_API_KEY }}

0 commit comments

Comments
 (0)