-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65469d2
commit 141711a
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ jobs: | |
git config user.email [email protected] | ||
$readmeDir = Get-Item -Path "**/Packages/com.*/Documentation~" | Select-Object -ExpandProperty FullName | ||
$readmeDir = $readmeDir.replace('${{ github.workspace }}/','') | ||
$readmeDir | ||
echo $readmeDir | ||
$readmeContent = gc (Get-Item -Path "**/Packages/com.*/Documentation~/README.md") -Raw | ||
$readmeContent = $readmeContent -replace '(\[.*\])\(((?!https?:\/\/).+)\)',('$1('+$readmeDir+'$2)') | ||
Set-Content ./README.md $readme | ||
gc ./README.md | ||
git add ./README.md | ||
git commit -m 'Copied repo README from package README' | ||
echo (gc ./README.md -Raw) | ||
# Set-Content ./README.md $readme | ||
# git add ./README.md | ||
# git commit -m 'Copied repo README from package README' | ||
working-directory: ${{ github.workspace }} | ||
shell: pwsh |