From 9c7f5c7a71c4a64c0209e206d0a42177a13305aa Mon Sep 17 00:00:00 2001 From: Dmitry Ledentsov Date: Sat, 18 Mar 2023 15:49:16 +0100 Subject: [PATCH] try installing chocolatey manually --- .github/workflows/goreleaser.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9273262..03e5259 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,12 +22,15 @@ jobs: - uses: actions/setup-go@v4 with: go-version: stable - - - name: Choco help - # install choco - uses: crazy-max/ghaction-chocolatey@v2 - with: - args: -h + - name: install choco + run: | + mkdir -p /opt/chocolatey + wget -q -O - "https://github.com/chocolatey/choco/releases/download/${CHOCOLATEY_VERSION}/chocolatey.v${CHOCOLATEY_VERSION}.tar.gz" | tar -xz -C "/opt/chocolatey" + echo '#!/bin/bash' >> /usr/local/bin/choco + echo 'mono /opt/chocolatey/choco.exe $@' >> /usr/local/bin/choco + chmod +x /usr/local/bin/choco + env: + CHOCOLATEY_VERSION: 1.3.1 - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser