File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,20 @@ jobs:
8787 - name : Download all results
8888 uses : actions/download-artifact@v8
8989 with :
90- # Download all artifacts instead of using pattern matching.
91- # When pattern matches a single artifact, download-artifact extracts
92- # it directly into the path without creating a subdirectory, breaking
93- # the expected path structure. Downloading all artifacts always creates
94- # per-artifact subdirectories.
90+ pattern : eval-results-*
9591 path : eval-results
9692
9793 - name : Update model evaluation docs
9894 run : |
9995 MODELS="${{ inputs.models || 'gpt-5-mini' }}"
10096 for MODEL in $(echo "$MODELS" | tr ',' ' '); do
97+ # download-artifact@v8 creates per-artifact subdirectories only when
98+ # multiple artifacts are downloaded. With a single artifact it extracts
99+ # directly into the target path. Check both locations.
101100 RESULTS_FILE="eval-results/eval-results-${MODEL}/mcpchecker-stackrox-mcp-e2e-out.json"
101+ if [ ! -f "$RESULTS_FILE" ]; then
102+ RESULTS_FILE="eval-results/mcpchecker-stackrox-mcp-e2e-out.json"
103+ fi
102104 if [ -f "$RESULTS_FILE" ]; then
103105 echo "Updating docs for model: ${MODEL}"
104106 ./scripts/update-model-evaluation.sh \
You can’t perform that action at this time.
0 commit comments