mirror of
https://github.com/cmderdev/cmder.git
synced 2026-04-14 13:54:32 +08:00
Remove separator before artifacts, add sources.json link, and link vendor versions to releases
Agent-Logs-Url: https://github.com/cmderdev/cmder/sessions/6ed72053-91c6-4e75-8317-ac54af872629 Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
165ca3b05b
commit
f69c1db205
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -79,7 +79,7 @@ jobs:
|
||||
|
||||
---
|
||||
|
||||
### 📁 Vendor Packages
|
||||
### 🗃️ Vendor Packages ([sources.json](vendor/sources.json))
|
||||
| Package | Version |
|
||||
| --- | --- |
|
||||
"@
|
||||
@@ -90,7 +90,17 @@ jobs:
|
||||
$summary += "`n| _No vendor packages found_ | |"
|
||||
} else {
|
||||
foreach ($vendor in $vendorSources) {
|
||||
$summary += "`n| ``$($vendor.name)`` | $($vendor.version) |"
|
||||
# Create release link based on vendor package
|
||||
$versionLink = "$($vendor.version)"
|
||||
if ($vendor.url) {
|
||||
# Extract owner/repo from the URL and create release link
|
||||
if ($vendor.url -match 'github\.com/([^/]+)/([^/]+)') {
|
||||
$owner = $Matches[1]
|
||||
$repo = $Matches[2] -replace '\.git$', ''
|
||||
$versionLink = "[$($vendor.version)](https://github.com/$owner/$repo/releases/tag/$($vendor.version))"
|
||||
}
|
||||
}
|
||||
$summary += "`n| ``$($vendor.name)`` | $versionLink |"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,8 +124,6 @@ jobs:
|
||||
|
||||
---
|
||||
|
||||
### Build Status
|
||||
|
||||
✅ Cmder built successfully.
|
||||
|
||||
"@
|
||||
@@ -164,8 +172,6 @@ jobs:
|
||||
run: |
|
||||
$summary = @"
|
||||
|
||||
---
|
||||
|
||||
### 🗃️ Artifacts
|
||||
|
||||
| Artifact | Size | Download | Hash (SHA256) |
|
||||
|
||||
Reference in New Issue
Block a user