From 3b3fbf45de52d1ed47e7c3b41abe5fce42c06140 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Mon, 2 Dec 2024 21:35:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(api)=20post=20performance=20md=20t?= =?UTF-8?q?able=20only=20in=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We cannot add a comment when not in a PR (ie when merged to main). --- .github/workflows/api.yml | 4 ++++ 1 file changed, 4 insertions(+) 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');