diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f508640..74ed917 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: vs-version: "[16.4,16.5]" - name: echo msbuild path - run: echo ${{ steps.setup_msbuild.outputs.msbuildPath }} + run: echo "${{ steps.setup_msbuild.outputs.msbuildPath }}" - name: echo vswhere run: vswhere.exe diff --git a/dist/index.js b/dist/index.js index c9cfa6f..ddd4b41 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1294,7 +1294,7 @@ function run() { // check to see if we are using a specific path for vswhere let vswhereToolExe = ''; let cachedToolDirectory = ''; - if (!VSWHERE_PATH) { + if (VSWHERE_PATH) { // specified a path for vswhere, use it and cache the location vswhereToolExe = path.join(VSWHERE_PATH, 'vswhere.exe'); cachedToolDirectory = yield toolCache.cacheDir(VSWHERE_PATH, 'vswhere', VSWHERE_VERSION); diff --git a/src/main.ts b/src/main.ts index 33f5fe3..c37dea7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -33,7 +33,7 @@ async function run(): Promise { let vswhereToolExe = '' let cachedToolDirectory = '' - if (!VSWHERE_PATH) { + if (VSWHERE_PATH) { // specified a path for vswhere, use it and cache the location vswhereToolExe = path.join(VSWHERE_PATH, 'vswhere.exe') cachedToolDirectory = await toolCache.cacheDir(