Skip to content

Commit

Permalink
👷(api) post performance md table only in PR
Browse files Browse the repository at this point in the history
We cannot add a comment when not in a PR (ie when merged to main).
  • Loading branch information
jmaupetit committed Dec 3, 2024
1 parent b2685da commit 677fe48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ jobs:
name: api-admin-benchmark
path: ./src/api/bench_admin_stats_stamped.csv
- name: Generate markdown table
# Only when in PR, not when merged
if: github.event.pull_request.merged == false
run: |
echo -e "### Current benchmark\n\n" >> bench_admin_stats.md && \
pipenv run csvlook -I bench_admin_stats_stamped.csv >> bench_admin_stats.md && \
Expand All @@ -195,6 +197,8 @@ jobs:
csvlook -I >> bench_admin_stats.md
cat bench_admin_stats.md
- uses: actions/github-script@v7
# Only when in PR, not when merged
if: github.event.pull_request.merged == false
with:
script: |
const fs = require('node:fs');
Expand Down

0 comments on commit 677fe48

Please sign in to comment.