File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export class GitVersionTask {
77 execOptions : tr . IExecOptions ;
88
99 preferBundledVersion : boolean ;
10+ configFilePathSupplied : boolean ;
1011 configFilePath : string ;
1112 updateAssemblyInfo : boolean ;
1213
@@ -21,6 +22,7 @@ export class GitVersionTask {
2122
2223 constructor ( ) {
2324 this . preferBundledVersion = tl . getBoolInput ( 'preferBundledVersion' ) || true ;
25+ this . configFilePathSupplied = tl . filePathSupplied ( 'configFilePath' ) ;
2426 this . configFilePath = tl . getPathInput ( 'configFilePath' ) ;
2527 this . updateAssemblyInfo = tl . getBoolInput ( 'updateAssemblyInfo' ) ;
2628
@@ -58,7 +60,7 @@ export class GitVersionTask {
5860 "buildserver" ,
5961 "/nofetch" ] ) ;
6062
61- if ( this . configFilePath ) {
63+ if ( this . configFilePathSupplied && this . configFilePath ) {
6264 exe . arg ( [ "/config" , this . configFilePath ] ) ;
6365 }
6466
You can’t perform that action at this time.
0 commit comments