Skip to content

Commit 5cffb19

Browse files
committed
fix: show resolved hash for branch inputs in SUSFS Configuration summary
Distinguishes three input cases in the Build plan summary SUSFS Configuration loop using regex on the raw input value. Changes in build-kernel-release.yml: - Build plan summary: SUSFS Configuration loop now uses three distinct display formats based on input type: auto (empty input) → 🔄 auto (`<hash>`) hash (40-char hex) → 📌 `<hash>` branch (any other) → 🔀 `<branch>` (`<resolved hash>`)
1 parent 84d5670 commit 5cffb19

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build-kernel-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,16 @@ jobs:
353353
for key in "${active_keys_display[@]}"; do
354354
value="${susfs_inputs[$key]:-}"
355355
fetched_hash="${step_hashes[$key]:-unknown}"
356-
357-
if [ -n "$value" ]; then
356+
357+
if [ -z "$value" ]; then
358+
# Auto: no input > hash resolved by ls-remote
359+
echo "- $key: 🔄 auto (\`$fetched_hash\`)" >> $GITHUB_STEP_SUMMARY
360+
elif [[ "$value" =~ ^[0-9a-f]{40}$ ]]; then
361+
# Manual 40-char hash > direct passthrough
358362
echo "- $key: 📌 \`$value\`" >> $GITHUB_STEP_SUMMARY
359363
else
360-
echo "- $key: 🔄 auto → \`$fetched_hash\`" >> $GITHUB_STEP_SUMMARY
364+
# Branch name > show branch + resolved hash
365+
echo "- $key: 🔀 \`$value\` (\`$fetched_hash\`)" >> $GITHUB_STEP_SUMMARY
361366
fi
362367
done
363368

0 commit comments

Comments
 (0)