mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-13 00:36:04 -05:00
use choco to download wget
This commit is contained in:
parent
93d147382d
commit
14b9b07652
2 changed files with 3 additions and 8 deletions
8
.github/workflows/test-action.yml
vendored
8
.github/workflows/test-action.yml
vendored
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue