Skip to content

Commit 9c7f5c7

Browse files
committed
try installing chocolatey manually
1 parent d80ae44 commit 9c7f5c7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/goreleaser.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ jobs:
2222
- uses: actions/setup-go@v4
2323
with:
2424
go-version: stable
25-
-
26-
name: Choco help
27-
# install choco
28-
uses: crazy-max/ghaction-chocolatey@v2
29-
with:
30-
args: -h
25+
- name: install choco
26+
run: |
27+
mkdir -p /opt/chocolatey
28+
wget -q -O - "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar -xz -C "/opt/chocolatey"
29+
echo '#!/bin/bash' >> /usr/local/bin/choco
30+
echo 'mono /opt/chocolatey/choco.exe $@' >> /usr/local/bin/choco
31+
chmod +x /usr/local/bin/choco
32+
env:
33+
CHOCOLATEY_VERSION: 1.3.1
3134
- uses: goreleaser/goreleaser-action@v4
3235
with:
3336
distribution: goreleaser

0 commit comments

Comments
 (0)