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 53
53
git config -- local user.email " $env: docspush_email "
54
54
git config -- local user.name " $env: docspush_username "
55
55
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'
58
57
git add - A
59
58
git ls- files - o -- exclude- standard | % { git add $_ }
60
59
if (! $? )
63
62
}
64
63
65
64
$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 "
68
67
if (! $? )
69
68
{
70
69
throw " git commit failed"
71
70
}
72
71
73
72
if (! $SkipPush )
74
73
{
75
- cmd / c echo Pushing changes to git
74
+ Write-Information ' Pushing changes to git'
76
75
git push
77
76
}
78
77
}
79
- catch
80
- {
81
- cmd / c echo Error pushing docs:
82
- cmd / c echo ($_.Exception | out-string )
83
- throw
84
- }
85
78
finally
86
79
{
87
80
popd
You can’t perform that action at this time.
0 commit comments