-
Notifications
You must be signed in to change notification settings - Fork 0
399 lines (394 loc) · 22.7 KB
/
bench.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
name: "Run benchmark"
on:
pull_request_target:
types: [assigned, opened, synchronize, reopened, edited]
push:
branches:
- main
permissions:
contents: write
packages: write
pull-requests: write
issues: write
jobs:
build:
if: github.event.head_commit.message != 'Update performance results in README.md'
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_RECORD_UPLOAD: false
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/federated-benchmark:latest
cache-from: type=gha
cache-to: type=gha,mode=max
benchmark:
if: github.event.head_commit.message != 'Update performance results in README.md'
needs: build
# runs-on: ubuntu-latest
runs-on:
group: benchmarking-runner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
response: [big, medium, small]
service: [
# the theoretical maximum
# source_graphql,
# source_rest_api,
# nginx -> source: the baseline for comparison
nginx_graphql,
# nginx_rest_api,
# tailcall configurations
tailcall_default,
# tailcall_tweaks,
# tailcall_http_cache,
# tailcall_cache_dir,
# tailcall_dedupe_op,
tailcall_full_conf,
# wundergraph configurations
wundergraph_no_opt,
# wundergraph_dedupe,
wundergraph_default,
# apollo
apollo_router,
# grafbase
grafbase_default,
grafbase_cache,
]
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create "output.log" file
run: touch ${{ github.workspace }}/output.log
- id: benchmark
name: Benchmark
uses: addnab/docker-run-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/${{ github.repository_owner }}/federated-benchmark:latest
options: -v ${{ github.workspace }}:/work
run: ./benchmark.sh ${{ matrix.response }} ${{ matrix.service }} >> /work/output.log
- name: Print result
run: cat ${{ github.workspace }}/output.log
- name: Determine if run had errors
id: extract_has_error
run: |
HAS_ERROR=$((grep -q "Error distribution:" ${{ github.workspace }}/output.log && echo true || echo false) | sed 's/true/❌/; s/false/✅/')
echo "error=${HAS_ERROR}" | tee -a "$GITHUB_OUTPUT"
- name: Extract RPS
id: extract_rps
run: |
RPS=$(grep "Requests/sec:" ${{ github.workspace }}/output.log | awk '{printf int($2)}' | sed -E ':a;s/([0-9])([0-9]{3})$/\1,\2/;ta')
echo "rps=${RPS}" | tee -a "$GITHUB_OUTPUT"
- name: Extract P95 Latency
id: extract_p95
run: |
P95=$(grep "95%" ${{ github.workspace }}/output.log | awk '{print $3}')
echo "p95=${P95}" | tee -a "$GITHUB_OUTPUT"
- uses: cloudposse/github-action-matrix-outputs-write@v1
id: out
with:
matrix-step-name: ${{ github.job }}
matrix-key: ${{ matrix.response }}_${{ matrix.service }}
outputs: |-
has_error: ${{ steps.extract_has_error.outputs.error }}
rps: ${{ steps.extract_rps.outputs.rps }}
p95: ${{ steps.extract_p95.outputs.p95 }}
read:
runs-on: ubuntu-latest
needs: [benchmark]
steps:
- uses: cloudposse/github-action-matrix-outputs-read@v1
id: read
with:
matrix-step-name: benchmark
outputs:
result: "${{ steps.read.outputs.result }}"
analyze:
if: github.event.head_commit.message != 'Update performance results in README.md'
needs: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Install gnuplot
run: sudo apt-get update && sudo apt-get install -y gnuplot
- name: Collect results table
run: |
echo "### [Small Payload - 362 bytes](./source/small.json)" >> "results.md"
echo "| Server | Status | RPS | Latency |" >> "results.md"
echo "| ---: | ---: | ---: | ---: |" >> "results.md"
echo "| [Nginx](https://nginx.org/en/) | \
${{ fromJson(needs.read.outputs.result).has_error.small_nginx_graphql }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_nginx_graphql }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_nginx_graphql }} sec\` |" >> "results.md"
echo "| **Base** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.small_tailcall_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_tailcall_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_tailcall_default }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.small_grafbase_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_grafbase_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_grafbase_default }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.small_wundergraph_no_opt }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_no_opt }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_no_opt }} sec\` |" >> "results.md"
echo "| [Apollo](https://github.com/apollographql/router) | \
${{ fromJson(needs.read.outputs.result).has_error.small_apollo_router }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_apollo_router }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_apollo_router }} sec\` |" >> "results.md"
echo "| **Cached** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.small_tailcall_full_conf }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_tailcall_full_conf }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_tailcall_full_conf }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.small_grafbase_cache }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_grafbase_cache }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_grafbase_cache }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.small_wundergraph_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_default }} sec\` |" >> "results.md"
echo "### [Medium Payload - 12,598 bytes](./source/medium.json)" >> "results.md"
echo "| Server | Status | RPS | Latency |" >> "results.md"
echo "| ---: | ---: | ---: | ---: |" >> "results.md"
echo "| [Nginx](https://nginx.org/en/) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_nginx_graphql }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_nginx_graphql }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_nginx_graphql }} sec\` |" >> "results.md"
echo "| **Base** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_tailcall_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_tailcall_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_tailcall_default }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_grafbase_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_grafbase_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_grafbase_default }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_wundergraph_no_opt }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_no_opt }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_no_opt }} sec\` |" >> "results.md"
echo "| [Apollo](https://github.com/apollographql/router) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_apollo_router }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_apollo_router }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_apollo_router }} sec\` |" >> "results.md"
echo "| **Cached** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_tailcall_full_conf }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_tailcall_full_conf }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_tailcall_full_conf }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_grafbase_cache }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_grafbase_cache }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_grafbase_cache }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.medium_wundergraph_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_default }} sec\` |" >> "results.md"
echo "### [Big Payload - 112,838 bytes](./source/big.json)" >> "results.md"
echo "| Server | Status | RPS | Latency |" >> "results.md"
echo "| ---: | ---: | ---: | ---: |" >> "results.md"
echo "| [Nginx](https://nginx.org/en/) | \
${{ fromJson(needs.read.outputs.result).has_error.big_nginx_graphql }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_nginx_graphql }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_nginx_graphql }} sec\` |" >> "results.md"
echo "| **Base** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.big_tailcall_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_tailcall_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_tailcall_default }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.big_grafbase_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_grafbase_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_grafbase_default }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.big_wundergraph_no_opt }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_wundergraph_no_opt }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_wundergraph_no_opt }} sec\` |" >> "results.md"
echo "| [Apollo](https://github.com/apollographql/router) | \
${{ fromJson(needs.read.outputs.result).has_error.big_apollo_router }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_apollo_router }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_apollo_router }} sec\` |" >> "results.md"
echo "| **Cached** | | | |" >> "results.md"
echo "| [Tailcall](https://github.com/tailcallhq/tailcall) | \
${{ fromJson(needs.read.outputs.result).has_error.big_tailcall_full_conf }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_tailcall_full_conf }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_tailcall_full_conf }} sec\` |" >> "results.md"
echo "| [Grafbase](https://github.com/grafbase/grafbase) | \
${{ fromJson(needs.read.outputs.result).has_error.big_grafbase_cache }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_grafbase_cache }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_grafbase_cache }} sec\` |" >> "results.md"
echo "| [Wundegraph](https://github.com/wundergraph/cosmo) | \
${{ fromJson(needs.read.outputs.result).has_error.big_wundergraph_default }} | \
\`${{ fromJson(needs.read.outputs.result).rps.big_wundergraph_default }} RPS\` | \
\`${{ fromJson(needs.read.outputs.result).p95.big_wundergraph_default }} sec\` |" >> "results.md"
- name: Update `README.md` file with table data
run: |
sed -i '/<!-- PERFORMANCE_RESULTS_START -->/,/<!-- PERFORMANCE_RESULTS_END -->/ {
/<!-- PERFORMANCE_RESULTS_START -->/!{
/<!-- PERFORMANCE_RESULTS_END -->/!d
}
}' README.md
sed -i '/<!-- PERFORMANCE_RESULTS_START -->/r results.md' README.md
- name: Summarize
run: |
echo "### Results" >> "$GITHUB_STEP_SUMMARY"
cat "results.md" >> "$GITHUB_STEP_SUMMARY"
- name: Write plot script
run: |
cat << 'EOF' > plot_script.gp
set terminal png size 800,500 enhanced font "Arial,14"
set output file_name
set yrange [0:]
set style data histogram
set style histogram cluster gap 1
set style fill solid
set boxwidth 0.9
set xtics format ""
set xtics rotate by 45 right
set grid ytics
set nokey
set title title_text
plot 'data.dat' using 2:xtic(1) linecolor rgb color
EOF
- name: Save RPS small payload data
run: |
cat << 'EOF' > data.dat
# Small
Tailcall ${{ fromJson(needs.read.outputs.result).rps.small_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).rps.small_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).rps.small_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).rps.small_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).rps.small_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).rps.small_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create RPS small payload data
run: gnuplot -e "file_name='files/rps_small.png'; title_text='RPS Small Payload'; color='#D81B60'" plot_script.gp
- name: Save RPS medium payload data
run: |
cat << 'EOF' > data.dat
# Medium
Tailcall ${{ fromJson(needs.read.outputs.result).rps.medium_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).rps.medium_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).rps.medium_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).rps.medium_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).rps.medium_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).rps.medium_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create RPS medium payload data
run: gnuplot -e "file_name='files/rps_medium.png'; title_text='RPS Medium Payload'; color='#1E88E5'" plot_script.gp
- name: Save RPS big payload data
run: |
cat << 'EOF' > data.dat
# Big
Tailcall ${{ fromJson(needs.read.outputs.result).rps.big_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).rps.big_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).rps.big_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).rps.big_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).rps.big_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).rps.big_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).rps.big_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create RPS big payload data
run: gnuplot -e "file_name='files/rps_big.png'; title_text='RPS Big Payload'; color='#FFC107'" plot_script.gp
- name: Save Latency 95% small payload data
run: |
cat << 'EOF' > data.dat
# Small
Tailcall ${{ fromJson(needs.read.outputs.result).p95.small_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).p95.small_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).p95.small_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).p95.small_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).p95.small_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).p95.small_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create Latency 95% small payload data
run: gnuplot -e "file_name='files/p95_small.png'; title_text='Latency 95% Small Payload'; color='#D81B60'" plot_script.gp
- name: Save Latency 95% medium payload data
run: |
cat << 'EOF' > data.dat
# Medium
Tailcall ${{ fromJson(needs.read.outputs.result).p95.medium_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).p95.medium_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).p95.medium_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).p95.medium_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).p95.medium_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).p95.medium_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create Latency 95% medium payload data
run: gnuplot -e "file_name='files/p95_medium.png'; title_text='Latency 95% Medium Payload'; color='#1E88E5'" plot_script.gp
- name: Save Latency 95% big payload data
run: |
cat << 'EOF' > data.dat
# Big
Tailcall ${{ fromJson(needs.read.outputs.result).p95.big_tailcall_default }}
Grafbase ${{ fromJson(needs.read.outputs.result).p95.big_grafbase_default }}
Wundergraph ${{ fromJson(needs.read.outputs.result).p95.big_wundergraph_no_opt }}
Apollo ${{ fromJson(needs.read.outputs.result).p95.big_apollo_router }}
"Tailcall Cached" ${{ fromJson(needs.read.outputs.result).p95.big_tailcall_full_conf }}
"Grafbase Cached" ${{ fromJson(needs.read.outputs.result).p95.big_grafbase_cache }}
"Wundergraph Cached" ${{ fromJson(needs.read.outputs.result).p95.big_wundergraph_default }}
EOF
tr -d ',' < data.dat > data1.dat && mv data1.dat data.dat
- name: Create Latency 95% big payload data
run: gnuplot -e "file_name='files/p95_big.png'; title_text='Latency 95% Big Payload'; color='#FFC107'" plot_script.gp
- name: Cleanup files
run: |
rm "results.md"
rm "data.dat"
rm "plot_script.gp"
- name: Comment `README.md` file
if: github.event_name == 'pull_request_target'
uses: peter-evans/commit-comment@v3
with:
sha: ${{ github.event.pull_request.head.sha }}
body-path: "README.md"
reactions: eyes
- name: Commit and push changes (on main branch)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_author: Author <[email protected]>
commit_message: "[ci skip] update performance results in README.md"