File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export class GitVersionTask {
7
7
execOptions : tr . IExecOptions ;
8
8
9
9
preferBundledVersion : boolean ;
10
+ configFilePathSupplied : boolean ;
10
11
configFilePath : string ;
11
12
updateAssemblyInfo : boolean ;
12
13
@@ -21,6 +22,7 @@ export class GitVersionTask {
21
22
22
23
constructor ( ) {
23
24
this . preferBundledVersion = tl . getBoolInput ( 'preferBundledVersion' ) || true ;
25
+ this . configFilePathSupplied = tl . filePathSupplied ( 'configFilePath' ) ;
24
26
this . configFilePath = tl . getPathInput ( 'configFilePath' ) ;
25
27
this . updateAssemblyInfo = tl . getBoolInput ( 'updateAssemblyInfo' ) ;
26
28
@@ -58,7 +60,7 @@ export class GitVersionTask {
58
60
"buildserver" ,
59
61
"/nofetch" ] ) ;
60
62
61
- if ( this . configFilePath ) {
63
+ if ( this . configFilePathSupplied && this . configFilePath ) {
62
64
exe . arg ( [ "/config" , this . configFilePath ] ) ;
63
65
}
64
66
You can’t perform that action at this time.
0 commit comments