[NPU][CI] Scope NPU nightly artifact dirs by image; fix stale glm5_2 case (#39585)

This commit is contained in:
pllimax
2026-09-15 22:55:53 +08:00
committed by GitHub
parent 832ec39cc0
commit 1aeeb25e86
4 changed files with 13 additions and 2 deletions
@@ -157,6 +157,11 @@ jobs:
workflow_name=$(echo "${{ fromJson(inputs.run_start_metadata).workflow_name }}" | tr ' ' '_' | tr -d '()')
create_time="${{ fromJson(inputs.run_start_metadata).create_time }}"
if [ -z "${create_time}" ]; then create_time=$(date -u -d '+8 hours' +%Y%m%d-%H%M); fi
# Append the image tag to the workflow-name segment so that runs with
# different images (CANN 9.0.0/9.1.0, a3/a5) persist into distinct,
# image-tagged output/log directories.
image_label=$(echo "${{ inputs.image }}" | sed 's#.*[/:]##')
workflow_name="${workflow_name}--${image_label}"
# Print persistence‑directory‑prefix variables
echo "Persistence prefix: run_id=${run_id} run_attempt=${run_attempt} branch_label=${branch_label} workflow_name=${workflow_name} create_time=${create_time}"