diff --git a/CHANGELOG.md b/CHANGELOG.md index e3e52672fb696d56498feedcf6e4ec5cb06deb6f..d84ae6ed6761fb8fc623a0accde156af71e5ea70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.3] - 2024-05-12 + +### Fixed + +* Present day release are not considered as "historical" anymore + ## [0.3.2] - 2024-05-12 ### Fixed diff --git a/pyproject.toml b/pyproject.toml index 630b775b0d22c879b9644eebc17d75d0f2015a78..d4571a2701acbf0297bd6878dbc59eba444cb795 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ allow-dirty = true commit = true config-file = "pyproject.toml" -current_version = "0.3.2" +current_version = "0.3.3" parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)" replace = "{new_version}" search = "{current_version}" diff --git a/templates/release-by-changelog.yml b/templates/release-by-changelog.yml index 89e508488a4360c6857af90e93d28ea2b5770f40..d5edf8cfc94d47bc271166671af359cc3eab9ece 100644 --- a/templates/release-by-changelog.yml +++ b/templates/release-by-changelog.yml @@ -22,7 +22,10 @@ release_by_changelog: # Extract version and date from the first header - 'version=$(echo "$headers" | head -1 | grep -oE "\[([0-9]+)\.([0-9]+)\.([0-9]+)\]" | tr -d "[]")' - 'date=$(echo "$headers" | head -1 | grep -oE "[0-9]{4}-[0-9]{2}-[0-9]{2}")' - - 'formatted_date=$(date -u -d "$date" +"%Y-%m-%dT%H:%M:%SZ")' # This line formats the date + # If date is different from today, format it + - 'if [ "$date" != "$(date +%Y-%m-%d)" ]; then' + - ' formatted_date=$(date -u -d "$date" +"%Y-%m-%dT%H:%M:%SZ")' + - 'fi' # Extract second header line number for end of text range - 'second_line=$(echo "$headers" | sed -n "2p" | cut -d: -f1)'