CHANGELOG.md added, latest change first#26
Conversation
mabd-dev
left a comment
There was a problem hiding this comment.
Thank you for your time and contribution. I will this PR once you fixed those 2 small comments
|
|
||
| - name: Extract changelog section | ||
| run: | | ||
| VERSION="${{ github.ref_name }}" |
There was a problem hiding this comment.
ref_name would be something like v1.3.8 but in CHANGELOG.md version entry don't have v prefix.
They look like this ## [1.3.7] - 2025-11-06
So either add v to changelog version entry or strip v from VERSION
| awk -v ver="$VERSION" ' | ||
| /^## \[/ { | ||
| if (p) exit | ||
| if ($0 ~ "\\[" ver "\\]") p=1 |
There was a problem hiding this comment.
version entry header (## [1.3.7] - 2025-11-06) will be also included, I prefer not to have it since it's redundant
you can use next keyword to skip version entry header after settings p=1
|
hey @mabd-dev changes are made |
| awk -v ver="$VERSION" ' | ||
| /^## \[/ { | ||
| if (p) exit | ||
| if ($0 ~ "\\[" ver "\\]") p=1 next |
There was a problem hiding this comment.
i believe you missed a semicolon. should be p=1; next
There was a problem hiding this comment.
thank you for the resource!!
changed body_path for logic