File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 29
29
jobs :
30
30
benchmark :
31
31
permissions :
32
- contents : read
32
+ contents : write
33
33
runs-on : ubuntu-24.04
34
34
timeout-minutes : 360 # Default: 360 minutes
35
35
steps :
67
67
$title = $title.Replace('_Double_', '<double>')
68
68
69
69
$content = Get-Content $item.FullName -Raw
70
- $tableContent = $content.Substring($content.IndexOf('|'))
70
+ $tableContent = $content.Substring($content.IndexOf('|'))
71
71
$tableContent.Replace('<', '<').Replace('>', '>')
72
72
73
73
Write-Output ('## {0}' -f $title) >> $env:GITHUB_STEP_SUMMARY
74
74
Write-Output $tableContent >> $env:GITHUB_STEP_SUMMARY
75
75
}
76
+
77
+ - name : Update README.md benchmark report link
78
+ if : ${{ context.repo.owner == 'Cysharp' && github.ref_name == 'main' && inputs.config == 'Default' && inputs.filter == '*' }}
79
+ shell : pwsh
80
+ run : |
81
+ $PSNativeCommandUseErrorActionPreference = $true
82
+
83
+ $md = Get-Content README.md -Raw
84
+ $md = [regex]::Replace($md, 'https://github.com/Cysharp/ZLinq/actions/runs/([\d]+)',
85
+ 'https://github.com/Cysharp/ZLinq/actions/runs/${{ github.run_id }}')
86
+ Set-Content -Path README.md -Value $md -Encoding utf8NoBOM
87
+
88
+ git config user.name "github-actions[bot]"
89
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
90
+
91
+ git add README.md
92
+ git commit -m 'ci: update benchmark report link'
93
+ git push
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- " main"
7
+ paths-ignore :
8
+ - README.md
7
9
pull_request :
8
10
branches :
9
11
- " main"
You can’t perform that action at this time.
0 commit comments