File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ $convertRootReadmeToHomePage = Get-ActionInput convertRootReadmeToHomePage
16
16
$useHeaderForWikiName = Get-ActionInput useHeaderForWikiName
17
17
18
18
$repositoryName = $env: GITHUB_REPOSITORY
19
- $repositoryUrl = " https://github.com/$repositoryName "
19
+ $repositoryUrl = " https://$githubToken @ github.com/$repositoryName "
20
20
21
- $wikiRepoName = " $repositoryName .wiki"
21
+ $wikiRepoDirectory = ( $repositoryName -split " / " )[ -1 ] + " .wiki"
22
22
$wikiRepoUrl = " $repositoryUrl .wiki.git"
23
23
24
24
if (-not $defaultBranch ) {
@@ -236,9 +236,9 @@ Function ProcessWikiFile()
236
236
237
237
Push-Location ..
238
238
Write-Information " Cloning wiki repo..."
239
- git - c http.extraheader = " AUTHORIZATION:bearer $githubToken " clone $wikiRepoUrl
240
- $wikiRepoPath = $pwd.Path + " /" + $wikiRepoName
241
- cd $wikiRepoName
239
+ git clone $wikiRepoUrl
240
+ $wikiRepoPath = $pwd.Path + " /" + $wikiRepoDirectory
241
+ cd $wikiRepoDirectory
242
242
git rm - rf * | Out-Null
243
243
Pop-Location
244
244
@@ -247,7 +247,7 @@ Write-Information "Processing source directory..."
247
247
ProcessSourceDirectory
248
248
Pop-Location
249
249
250
- Push-Location ..\$wikiRepoName
250
+ Push-Location ..\$wikiRepoDirectory
251
251
Write-Information " Post-processing wiki files..."
252
252
ProcessWikiDirectory
253
253
You can’t perform that action at this time.
0 commit comments