Fix workflow summary markdown tables

This commit is contained in:
David Refoua
2026-06-14 19:41:22 +03:30
parent e33c42a08d
commit 92e9e96e07
3 changed files with 7 additions and 4 deletions

View File

@@ -89,7 +89,13 @@ jobs:
| --- | --- |
| Repository | [``${{ github.repository }}``](https://github.com/${{ github.repository }}) |
| Branch | [``$actualBranchName``]($branchLink) |
$(if ($prNumber) { "| Pull Request | [#$prNumber]($prLink) |" })
"@
if ($prNumber) {
$summary += "| Pull Request | [#$prNumber]($prLink) |`n"
}
$summary += @"
| Commit | [``${{ github.sha }}``](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) |
| Actor | [@${{ github.actor }}](https://github.com/${{ github.actor }}) |
| Workflow | ``${{ github.workflow }}`` |
@@ -198,7 +204,6 @@ jobs:
. scripts/utils.ps1
$summary = @"
### 🗃️ Artifacts
| Artifact | Size | Hash (SHA256) |

View File

@@ -61,7 +61,6 @@ jobs:
| Branch | ``${{ github.ref_name }}`` |
| Language | ``${{ matrix.language }}`` |
| Commit | ``${{ github.sha }}`` |
"@
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8

View File

@@ -62,7 +62,6 @@ jobs:
| Cmder Version | **$cmderVersion** |
| PowerShell Version | **$($PSVersionTable.PSVersion)** |
| Event | ``${{ github.event_name }}`` |
"@
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8