Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use choco to download wget #1192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
- name: Checkout Actions Repository
uses: actions/checkout@v4

- name: Install wget for Windows
if: matrix.os == 'windows-latest'
run: choco install wget --no-progress

- name: Prepare file with mistakes.
run: echo "Finallizes" > file.txt
- name: Test force pass with mistakes
Expand Down Expand Up @@ -43,10 +39,6 @@ jobs:
with:
fetch-depth: 0

- name: Install wget for Windows
if: matrix.os == 'windows-latest'
run: choco install wget --no-progress

- name: Prepare file with mistakes.
run: echo "Finallizes" > file.txt
- name: Test force pass with mistakes
Expand Down
3 changes: 3 additions & 0 deletions action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ if [[ ! -x ${COMMAND} ]]; then
elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* || "$UNAME" == MSYS* ]] ; then
TARGET_FILE="${ARCH}-pc-windows-msvc"
FILE_EXT="zip"
if [[ ! -x $(command -v wget) ]] && [[ -x $(command -v choco) ]]; then
choco install wget --no-progress
fi
else
TARGET_FILE="${ARCH}-unknown-linux-musl"
FILE_EXT="tar.gz"
Expand Down
Loading