From 27c7a0cdc6c6b4224a2715236adde5a2dd1cc7d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Dec 2025 01:59:35 +0000 Subject: [PATCH] Improve build summary: simplify message, reorder columns, add file type emojis Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com> --- .github/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7441c5b..6583450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,7 +96,7 @@ jobs: ### Build Status - ✅ Cmder launcher successfully compiled. + ✅ Cmder built successfully. "@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 @@ -140,7 +140,7 @@ jobs: ### 🗃️ Artifacts - | Artifact | Size | Hash (SHA256) | Download | + | Artifact | Size | Download | Hash (SHA256) | | --- | --- | --- | --- | "@ @@ -151,7 +151,17 @@ jobs: $size = (Get-Item $path).Length / 1MB $hash = (Get-FileHash $path -Algorithm SHA256).Hash $downloadUrl = "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - $summary += "`n| ``$artifact`` | $([math]::Round($size, 2)) MB | ``$hash`` | [Download]($downloadUrl) |" + + # Determine emoji based on file type + if ($artifact -match '\.txt$') { + $emoji = "📄" + } elseif ($artifact -match '\.(zip|7z)$') { + $emoji = "🗄️" + } else { + $emoji = "📦" + } + + $summary += "`n| $emoji ``$artifact`` | $([math]::Round($size, 2)) MB | [📥 Download]($downloadUrl) | ``$hash`` |" } } $summary += "`n"