Skip to content

Commit

Permalink
ci: bumpversion updates date
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Dec 18, 2024
1 parent dd7fc84 commit 1d444a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ filename = "CITATION.cff"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'

[[tool.bumpversion.files]]
# note that the it's not possible to do 2 search/replace actions to the same file in a single entry
filename = "CITATION.cff"
search = "__date__ = '\\d{{4}}-\\d{{2}}-\\d{{2}}'"
replace = "__date__ = '{now:%Y-%m-%d}'"
regex = true

[[tool.bumpversion.files]]
filename = "deeprank2/__init__.py"
search = '__version__ = "{current_version}"'
Expand Down

0 comments on commit 1d444a3

Please sign in to comment.