File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ $useHeaderForWikiName = Get-ActionInput useHeaderForWikiName
17
17
$customWikiFileHeaderFormat = Get-ActionInput customWikiFileHeaderFormat
18
18
19
19
$repositoryName = $env: GITHUB_REPOSITORY
20
+
20
21
$repositoryUrl = " https://github.com/$repositoryName "
21
22
$repositoryCloneUrl = " https://$githubToken @github.com/$repositoryName "
22
23
@@ -212,7 +213,8 @@ Function AddCustomHeader()
212
213
213
214
$header = $customWikiFileHeaderFormat
214
215
215
- $sourceFileLink = " $repositoryUrl /blob/$defaultBranch /$ ( $directories -join " /" ) /$ ( $fileName ) "
216
+ $relativePath = " $rootDocsFolder /$ ( $directories -join " /" ) "
217
+ $sourceFileLink = " $repositoryUrl /blob/$defaultBranch /$relativePath /$ ( $fileName ) "
216
218
$header = $header -replace " {sourceFileLink}" , $sourceFileLink
217
219
218
220
@ ($header , " `n " , " `n " ) + $content
You can’t perform that action at this time.
0 commit comments