Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustinio committed Oct 7, 2024
1 parent 97615f3 commit ba7c2e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-to-testpypi-and-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ jobs:
- name: Get release notes from CHANGELOG.md
run: |
version=${{ env.VERSION }}
# Adjusted awk to extract notes with custom section headings and emoji
notes=$(awk "/## \[$version\]/, /^## \[.*\]/ {if (/^## \[.*\]/) exit; print}" CHANGELOG.md)
# Extract notes from changelog
notes=$(awk -v ver="$version" '
BEGIN { found_version=0; }
/## \[/ { if (found_version) { exit } }
/## \['"$version"'\]/ { found_version=1; next }
found_version { print }
' CHANGELOG.md)
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "$notes" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Get release notes from CHANGELOG.md
run: |
version=${{ env.VERSION }}
# Adjusted awk to extract notes with custom section headings and emoji
# Extract notes from changelog
notes=$(awk -v ver="$version" '
BEGIN { found_version=0; }
/## \[/ { if (found_version) { exit } }
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

All notable changes to this project will be documented in this file.

## [0.12.3] - 2024-10-02
## [0.12.3]

_released `2024-10-02`

### ✨ Added

Expand Down

0 comments on commit ba7c2e4

Please sign in to comment.