Skip to content

Commit 3b87203

Browse files
committed
choco: switch to windows powershell in choco building step
in the makefile we use Get-FileHash cmdlet to generate sha256 hash which is windows specific and only available in windows powershell not in powershell core (pwsh) which github actions uses by default for windows based runners
1 parent 6d83a83 commit 3b87203

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/choco-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
with:
2323
go-version: ${{ matrix.go }}
2424
- name: Build the chocolatey package
25+
shell: powershell
2526
run: make choco
2627
- name: Add api key for choco community feed
27-
shell: pwsh
2828
env:
2929
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
3030
run: choco apikey --key "$env:CHOCO_API_KEY" --source https://push.chocolatey.org/

.github/workflows/windows-chocolatey.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
go-version: ${{ matrix.go }}
2424
- name: Build the chocolatey package
25+
shell: powershell
2526
run: make choco
2627
- name: Upload nupkg artifact
2728
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)