Skip to content

Commit

Permalink
env: Replace multiline included old-version text
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Apr 13, 2024
1 parent 460d4e5 commit 8e14fd9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .age.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,12 @@ replace = """
# This file has other replace target, but currently not supported.
[[files]]
path = ".github/release-body.md"
search = "- Changelog is https://github.com/attakei/age-cli/blob/v{{current_version}}/CHANGELOG.md"
replace = "- Changelog is https://github.com/attakei/age-cli/blob/v{{new_version}}/CHANGELOG.md"
regex = true
search = """
- Changelog is https://github.com/attakei/age-cli/blob/v{{current_version}}/CHANGELOG.md
- Source changes is (.+)
"""
replace = """
- Changelog is https://github.com/attakei/age-cli/blob/v{{new_version}}/CHANGELOG.md
- Source changes is https://github.com/attakei/age-cli/compare/v{{current_version}}...v{{new_version}}
"""

0 comments on commit 8e14fd9

Please sign in to comment.