Description
The action fails on windows-latest GitHub Actions runners because it uses wmic, which has been removed from newer Windows Server images.
Error
Error: Command failed: wmic datafile where name="D:\a\_temp\6c3a6121-b0a3-47e4-b41f-6f88262ce79f"
'wmic' is not recognized as an internal or external command,
operable program or batch file.
Steps to reproduce
Use paramdigma/setup-yak@1.0.0 in a workflow running on windows-latest:
jobs:
build:
runs-on: windows-latest
steps:
- uses: paramdigma/setup-yak@1.0.0
Workaround
Download yak.exe directly instead:
- name: Install Yak
shell: pwsh
run: |
$url = "https://files.mcneel.com/yak/tools/latest/yak.exe"
Invoke-WebRequest $url -OutFile yak.exe
Environment
Description
The action fails on
windows-latestGitHub Actions runners because it useswmic, which has been removed from newer Windows Server images.Error
Steps to reproduce
Use
paramdigma/setup-yak@1.0.0in a workflow running onwindows-latest:Workaround
Download
yak.exedirectly instead:Environment
windows-latest