Skip to content

Commit 2d2cbe7

Browse files
committed
Fix release notes extraction for macOS (use awk instead of sed)
1 parent 7b691c0 commit 2d2cbe7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
- name: Extract Latest Release Notes
5151
shell: bash
5252
run: |
53-
# Extract content between the first two "# Release Notes" headers
54-
sed -n '/^# Release Notes - v/{p;n;:a;n;/^# Release Notes - v/q;p;ba}' RELEASE_NOTES.md > LATEST_RELEASE_NOTES.md
53+
# Extract content between the first and second "# Release Notes" headers using portable awk
54+
awk '/^# Release Notes - v/ { if (n++) exit } { if (n) print }' RELEASE_NOTES.md > LATEST_RELEASE_NOTES.md
5555
5656
- name: Upload Release Asset
5757
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)