try to not execute the command if vpk avaliable in the system.

This commit is contained in:
Hongtao Zhang 2024-06-16 17:18:57 -05:00
parent 239b97b34b
commit ffe8352935

View file

@ -54,7 +54,10 @@ jobs:
- name: Install vpk
Install vpk tool (dotnet tool install will not reinstall if already installed)
We will update the cli by removing cache
run: dotnet tool update -g vpk
run: |
if (!(Get-Command vpk -ErrorAction SilentlyContinue)) {
dotnet tool install -g vpk
}
- name: Restore dependencies
run: dotnet restore
- name: Build