Skip to content

Commit

Permalink
Look at more of changelog to find version number
Browse files Browse the repository at this point in the history
The introduction in CHANGELOG.md has grown larger since towncrier was
introduced, it is no longer good enough to look only at the first 10
lines to find the latest version.
  • Loading branch information
lunkwill42 committed May 16, 2024
1 parent eb5bb22 commit d5ecc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ get_version() {
}

get_version_from_changelog() {
head -n10 CHANGELOG.md | awk '/^## \[[0-9]/ { print $2 }' | tr -d '[]'
head -n15 CHANGELOG.md | awk '/^## \[[0-9]/ { print $2 }' | tr -d '[]'
}

git_tag_exists() {
Expand Down

0 comments on commit d5ecc6c

Please sign in to comment.