This repository was archived by the owner on Nov 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - dev/upm-readiness
8+ paths :
9+ - ' **/Packages/com.*/Documentation~/README.md'
810
911jobs :
1012 copy-documentation-readme-upwards :
@@ -19,18 +21,11 @@ jobs:
1921 git config user.email [email protected] 2022 $readmeDir = Get-Item -Path "**/Packages/com.*/Documentation~" | Select-Object -ExpandProperty FullName
2123 $readmeDir = $readmeDir.replace('${{ github.workspace }}/','')
22- echo $readmeDir
2324 $readmeContent = gc (Get-Item -Path "**/Packages/com.*/Documentation~/README.md") -Raw
2425 $readmeContent = $readmeContent -replace '(\[.*\])\(((?!https?:\/\/).+)\)',('$1('+$readmeDir+'/$2)')
25- echo $readmeContent
26- echo "v.s."
2726 Set-Content README.md $readmeContent
28- $targetContent = gc README.md -Raw
29- echo $targetContent
30- echo Compare-Object ($readmeContent | out-string) ($targetContent | out-string)
31- if (-not Compare-Object ($readmeContent | out-string) ($targetContent | out-string)) {echo "eq"} else {echo "ne"}
32- # Set-Content ./README.md $readmeContent
33- # git add ./README.md
34- # git commit -m 'Copied repo README from package README'
27+ git add README.md
28+ git commit -m 'Copied repo README from package README'
29+ git push
3530 working-directory : ${{ github.workspace }}
3631 shell : pwsh
You can’t perform that action at this time.
0 commit comments