File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var configuration =
55 "Release" ;
66var preReleaseSuffix =
77 HasArgument ( "PreReleaseSuffix" ) ? Argument < string > ( "PreReleaseSuffix" ) :
8- ( TFBuild . IsRunningOnAzurePipelinesHosted && TFBuild . Environment . Repository . Branch . StartsWith ( "refs/tags/" ) ) ? null :
8+ ( TFBuild . IsRunningOnAzurePipelinesHosted && Environment . GetEnvironmentVariable ( "BUILD_SOURCEBRANCH" ) . StartsWith ( "refs/tags/" ) ) ? null :
99 ( AppVeyor . IsRunningOnAppVeyor && AppVeyor . Environment . Repository . Tag . IsTag ) ? null :
1010 EnvironmentVariable ( "PreReleaseSuffix" ) != null ? EnvironmentVariable ( "PreReleaseSuffix" ) :
1111 "beta" ;
@@ -26,7 +26,7 @@ var nuGetApiKey =
2626
2727if ( TFBuild . IsRunningOnAzurePipelinesHosted )
2828{
29- Information ( "BRANCH: " + TFBuild . Environment . Repository . Branch ) ;
29+ Information ( "BRANCH: " + Environment . GetEnvironmentVariable ( "BUILD_SOURCEBRANCH" ) ) ;
3030}
3131
3232var artifactsDirectory = Directory ( "./Artifacts" ) ;
You can’t perform that action at this time.
0 commit comments