Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b987acbd authored by Dorian Turba's avatar Dorian Turba
Browse files

Merge branch 'trunk'

parents e75bbbe7 aca8a4a5
No related branches found
No related tags found
No related merge requests found
Pipeline #34463 passed
......@@ -7,8 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.3.2] - 2024-05-12
### Fixed
* R2 template path now pointing to the correct folder
* When no text is found in the version description, the description is not the following
header anymore
## [0.3.1] - 2024-05-12
### Fixed
* Template path now pointing to the correct folder
## [0.3.0] - 2024-05-12
### Changed
......
......@@ -2,7 +2,7 @@
allow-dirty = true
commit = true
config-file = "pyproject.toml"
current_version = "0.3.1"
current_version = "0.3.2"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
replace = "{new_version}"
search = "{current_version}"
......
files:
template: release-by-changelog.yml
template: templates/release-by-changelog.yml
documentation: README.md
changelog: CHANGELOG.md
data:
......
......@@ -35,8 +35,15 @@ release_by_changelog:
- ' end_line=$(wc -l < "$CHANGELOG_FILEPATH")'
- 'fi'
- 'start_line=$((first_line + 2))'
- 'if [ "$start_line" -le "$end_line" ]; then'
# Use sed to extract the text between the first and the potential second version header
- 'text=$(sed -n "$((first_line + 2)),$end_line p" "$CHANGELOG_FILEPATH")'
- ' text=$(sed -n "$start_line,$end_line p" "$CHANGELOG_FILEPATH")'
- ' echo "Text:"'
- ' echo "$text"'
- 'else'
- ' echo "No text to extract, start line exceeds end line."'
- 'fi'
# Output the results
- 'echo "Version: $version"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment