1 parent e8234c6 commit 334f075Copy full SHA for 334f075
1 file changed
.github/workflows/update-readme.yml
@@ -1,16 +1,24 @@
1
+name: Sync benchmark
2
+
3
+on:
4
+ workflow_dispatch:
5
6
jobs:
7
sync-benchmark:
8
runs-on: ubuntu-latest
9
steps:
10
- uses: actions/checkout@v4
11
12
- name: Inject benchmark into README
13
run: |
14
sed -e '/<!-- BEGIN BENCHMARK -->/ {
- r integeration_test/benchmark.md
- d
- }' README.md > README.tmp
15
+ r integeration_test/benchmark.md
16
+ d
17
+ }' README.md > README.tmp
18
mv README.tmp README.md
19
20
- name: Commit README changes
21
uses: stefanzweifel/git-auto-commit-action@v4
22
with:
23
commit_message: chore: sync benchmark into README
24
+ file_pattern: README.md
0 commit comments