From ffe8352935b8b47ea61a0a9cd737d846d7fa4f67 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sun, 16 Jun 2024 17:18:57 -0500 Subject: [PATCH] try to not execute the command if vpk avaliable in the system. --- .github/workflows/dotnet.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0a4773de4..9ba4f20ac 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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