Skip to content

Commit b1a95dc

Browse files
committed
converted docs push to use write-information as it is no longer operating with secrets
1 parent 87f7553 commit b1a95dc

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Push-Docs.ps1

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ try
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(!$?)
@@ -63,25 +62,19 @@ try
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-
}
8578
finally
8679
{
8780
popd

0 commit comments

Comments
 (0)