File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 5353 git config -- local user.email " $env: docspush_email "
5454 git config -- local user.name " $env: docspush_username "
5555
56- # use cmd /c to get message output from GH Actions that are suppressed when a secret is used.
57- cmd / c echo Adding files to git
56+ Write-Information ' Adding files to git'
5857 git add - A
5958 git ls- files - o -- exclude- standard | % { git add $_ }
6059 if (! $? )
6362 }
6463
6564 $msg = " CI Docs Update $ ( Get-BuildVersionTag ) "
66- cmd / c " echo Committing changes to git [$msg ]"
67- git commit - m" `" $msg `" "
65+ Write-Information " Committing changes to git [$msg ]"
66+ git commit - m" $msg "
6867 if (! $? )
6968 {
7069 throw " git commit failed"
7170 }
7271
7372 if (! $SkipPush )
7473 {
75- cmd / c echo Pushing changes to git
74+ Write-Information ' Pushing changes to git'
7675 git push
7776 }
7877}
79- catch
80- {
81- cmd / c echo Error pushing docs:
82- cmd / c echo ($_.Exception | out-string )
83- throw
84- }
8578finally
8679{
8780 popd
You can’t perform that action at this time.
0 commit comments