mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
Add generation of announcements tables (#1355)
* Parse announcements from issues * Minor fix * Minor fix * Reworked * Minor fix * Fix env variable name
This commit is contained in:
committed by
GitHub
parent
0f6fba462a
commit
75ac0436ed
@@ -10,9 +10,12 @@ Import-Module (Join-Path $PSScriptRoot "SoftwareReport.VisualStudio.psm1") -Disa
|
||||
|
||||
$markdown = ""
|
||||
|
||||
$Announcements = Get-Content -Path $(Join-Path $PSScriptRoot "announcements.md") -Raw
|
||||
$markdown += $Announcements
|
||||
$markdown += New-MDNewLine
|
||||
if ($env:ANNOUNCEMENTS) {
|
||||
$markdown += $env:ANNOUNCEMENTS
|
||||
$markdown += New-MDNewLine
|
||||
$markdown += "***"
|
||||
$markdown += New-MDNewLine
|
||||
}
|
||||
|
||||
$OSName = Get-OSName
|
||||
$markdown += New-MDHeader "$OSName" -Level 1
|
||||
|
||||
Reference in New Issue
Block a user