diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index c0249bd..8e1e699 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -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 diff --git a/action/entrypoint.sh b/action/entrypoint.sh index ba55c46..d120650 100755 --- a/action/entrypoint.sh +++ b/action/entrypoint.sh @@ -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"