From 8e14fd927b4a242bdcf22c6e748f5e3306d095b9 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Sat, 13 Apr 2024 20:38:30 +0900 Subject: [PATCH] env: Replace multiline included old-version text --- .age.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.age.toml b/.age.toml index ff1423f..d857a7b 100644 --- a/.age.toml +++ b/.age.toml @@ -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}} +"""