From 935f0a9863603a4e385da3c947d73e2d4f6ae911 Mon Sep 17 00:00:00 2001 From: Mladen Todorovic Date: Fri, 10 Apr 2026 17:27:37 +0200 Subject: [PATCH] Fix using of artifacts for single model --- .github/workflows/model-evaluation.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/model-evaluation.yml b/.github/workflows/model-evaluation.yml index cacd6c9..d58790d 100644 --- a/.github/workflows/model-evaluation.yml +++ b/.github/workflows/model-evaluation.yml @@ -87,18 +87,20 @@ jobs: - name: Download all results uses: actions/download-artifact@v8 with: - # Download all artifacts instead of using pattern matching. - # When pattern matches a single artifact, download-artifact extracts - # it directly into the path without creating a subdirectory, breaking - # the expected path structure. Downloading all artifacts always creates - # per-artifact subdirectories. + pattern: eval-results-* path: eval-results - name: Update model evaluation docs run: | MODELS="${{ inputs.models || 'gpt-5-mini' }}" for MODEL in $(echo "$MODELS" | tr ',' ' '); do + # download-artifact@v8 creates per-artifact subdirectories only when + # multiple artifacts are downloaded. With a single artifact it extracts + # directly into the target path. Check both locations. RESULTS_FILE="eval-results/eval-results-${MODEL}/mcpchecker-stackrox-mcp-e2e-out.json" + if [ ! -f "$RESULTS_FILE" ]; then + RESULTS_FILE="eval-results/mcpchecker-stackrox-mcp-e2e-out.json" + fi if [ -f "$RESULTS_FILE" ]; then echo "Updating docs for model: ${MODEL}" ./scripts/update-model-evaluation.sh \