Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit 63ce3a1

Browse files
committed
[skip ci] Updated GitHubReleaseNotes script
1 parent 682d99d commit 63ce3a1

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

ci/GitHubReleaseNotes.ps1

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,20 @@ Param(
66
[String]
77
$ModuleVersion = $Script:ModuleVersion
88
)
9-
$changeLog = if ($env:BUILD_REASON -eq 'Schedule') {
10-
@(
11-
"## $ModuleVersion - $(Get-Date -Format 'yyyy-MM-dd') (Scheduled Release)"
12-
''
9+
$changeLog = @(
10+
'# Changelog'
11+
''
12+
)
13+
if ($env:BUILD_REASON -eq 'Schedule') {
14+
$changeLog += @(
1315
'> _This is a standard scheduled release to bring this module up to the current CloudFormation specification sheet._'
1416
''
15-
'* Miscellaneous'
16-
' * Brought Resource Type and Property Type functions up to current spec sheet.'
17-
''
18-
'***'
19-
''
20-
'# Last Changelog Entry'
21-
''
2217
)
2318
}
24-
else {
25-
@()
26-
}
2719
$cl = Get-Content "$PSScriptRoot\..\CHANGELOG.md"
2820
$lastClEntries = $cl | Where-Object {$_ -match '^## .* - \d{4}-\d{2}-\d{2}'} | Select-Object -First 2
2921
$changeLog += ($cl[($cl.IndexOf($lastClEntries[0]))..(($cl.IndexOf($lastClEntries[1]) - 1))])
3022
@"
31-
# Changelog
32-
3323
$($changeLog -join "`n")
3424
***
3525

0 commit comments

Comments
 (0)