Skip to content

Commit 8a99245

Browse files
committed
Remove old changes from changelog before release.
1 parent af48525 commit 8a99245

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
touch CHANGELOG.md
4646
fi
4747
48+
- name: Remove all lines after the 2nd title in CHANGELOG.md
49+
shell: pwsh
50+
run: |
51+
$content = Get-Content -Path CHANGELOG.md
52+
$content = $content -split '# ' | Select-Object -First 3
53+
Set-Content -Path CHANGELOG.md -Value $content
54+
4855
- name: Create Release
4956
id: createRelease
5057
uses: ncipollo/[email protected]

0 commit comments

Comments
 (0)