mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-22 03:21:08 +07:00
Changing test; fixing null check
This commit is contained in:
parent
5817abf347
commit
3ef0817a4a
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -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
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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);
|
||||
|
@ -33,7 +33,7 @@ async function run(): Promise<void> {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user