From 0b48740a8584d828a10119bd2a1dff709d5c428f Mon Sep 17 00:00:00 2001 From: Max Richter Date: Fri, 24 Apr 2026 17:32:37 +0200 Subject: [PATCH] feat: correctly create benchmark folder --- .gitea/workflows/benchmark.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/benchmark.yaml b/.gitea/workflows/benchmark.yaml index c5ea64d..9053469 100644 --- a/.gitea/workflows/benchmark.yaml +++ b/.gitea/workflows/benchmark.yaml @@ -71,8 +71,8 @@ jobs: # 3. Create a directory structure based on the branch # This allows the UI to "switch between branches" - BRANCH_NAME="${{ github.ref_name }}" - DEST_DIR="target_bench_repo/data/$BRANCH_NAME/$(date +%s)" + SAFE_PR_NAME="${GITHUB_HEAD_REF//\//-}" + DEST_DIR="target_bench_repo/data/$SAFE_PR_NAME/$(date +%s)" mkdir -p "$DEST_DIR" # 4. Copy the new results @@ -82,5 +82,5 @@ jobs: # 5. Commit and Push cd target_bench_repo git add . - git commit -m "Update benchmarks for $BRANCH_NAME: ${{ github.sha }}" + git commit -m "Update benchmarks for $SAFE_PR_NAME: ${{ github.sha }}" git push origin main