diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index ec6745d8..e015bea8 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -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 && \ @@ -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');