From 432df03c4c8b2e5f9e60faf721a13658eca66777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 11 Oct 2023 14:57:03 +0200 Subject: [PATCH] Use the correct base filename in the comment bench CI --- .github/workflows/trigger-benchmarks-on-message.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger-benchmarks-on-message.yml b/.github/workflows/trigger-benchmarks-on-message.yml index 51945b6e6..e336a1b72 100644 --- a/.github/workflows/trigger-benchmarks-on-message.yml +++ b/.github/workflows/trigger-benchmarks-on-message.yml @@ -86,9 +86,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }} run: | - export base=$(git log --pretty=%p -n 1) + export base_ref=$(git log --pretty=%p -n 1) + export base_filename=$(echo ${{ steps.command.outputs.command-arguments }}_main_${base_ref}.json) echo 'Here are your benchmarks diff 👊' >> body.txt echo '```' >> body.txt - ./benchmarks/scripts/compare.sh $base ${{ steps.file.outputs.basename }}.json >> body.txt + ./benchmarks/scripts/compare.sh $base_filename ${{ steps.file.outputs.basename }}.json >> body.txt echo '```' >> body.txt gh pr comment ${{ steps.current_branch.outputs.name }} --body-file body.txt