@@ -1266,7 +1266,7 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge")
12661266
12671267 var cloneCmd = new [ ] {
12681268 string . Format ( "cd '{0}'" , docsRepoFolder ) ,
1269- string . Format ( "git clone -b {1} {0}" , docsRepoUrl , defaultDocsBranch )
1269+ string . Format ( "git clone -b {1} {0} --quiet > null 2>&1 " , docsRepoUrl , defaultDocsBranch )
12701270 } ;
12711271
12721272 StartPowershellScript ( string . Join ( Environment . NewLine , cloneCmd ) ) ;
@@ -1277,8 +1277,8 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge")
12771277 Information ( string . Format ( "Checkout docs branch:[{0}]" , defaultDocsBranch ) ) ;
12781278 var checkoutCmd = new [ ] {
12791279 string . Format ( "cd '{0}'" , docsRepoFolder ) ,
1280- string . Format ( "git checkout {0}" , defaultDocsBranch ) ,
1281- string . Format ( "git pull" )
1280+ string . Format ( "git checkout {0} --quiet > null 2>&1 " , defaultDocsBranch ) ,
1281+ string . Format ( "git pull --quiet > null 2>&1 " )
12821282 } ;
12831283
12841284 StartPowershellScript ( string . Join ( Environment . NewLine , checkoutCmd ) ) ;
@@ -1324,7 +1324,7 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge")
13241324 mergeCmd . Add ( string . Format ( "git add {0} -f" , defaultDocsFileExtension ) ) ;
13251325 }
13261326
1327- mergeCmd . Add ( string . Format ( "git commit -m '{0}'" , commitName ) ) ;
1327+ mergeCmd . Add ( string . Format ( "git commit -m '{0}' --quiet > null 2>&1 " , commitName ) ) ;
13281328
13291329 StartPowershellScript ( string . Join ( Environment . NewLine , mergeCmd ) ) ;
13301330
@@ -1333,7 +1333,8 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge")
13331333 string . Format ( "cd '{0}'" , docsRepoFolder ) ,
13341334 string . Format ( "git config http.sslVerify false" ) ,
13351335 string . Format ( "git config --global push.default simple" ) ,
1336- string . Format ( "git push {0}" , docsRepoPushUrl )
1336+ string . Format ( "git push {0} --quiet > null 2>&1" , docsRepoPushUrl ) ,
1337+ string . Format ( "return $LASTEXITCODE" )
13371338 } ;
13381339
13391340 // writing a temporary PS file to avoid creds exposure in the build output
0 commit comments