diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-26 12:58:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-26 13:11:24 +0900 |
commit | 6bd86bb2afdce52dc6563d444cf488307767b9d3 (patch) | |
tree | bbb7b7e171b3486192ca0e9e706e6e4d7ad97568 /.github | |
parent | ac4d00df824215d4b85d36cef75c76543fead33e (diff) |
Follow the NEWS.md change up [ci skip]
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/bundled_gems.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/bundled_gems.yml b/.github/workflows/bundled_gems.yml index f9a7a822cd..034327b356 100644 --- a/.github/workflows/bundled_gems.yml +++ b/.github/workflows/bundled_gems.yml @@ -69,12 +69,12 @@ jobs: [g, v] unless last[g] == v end changed, added = changed.partition {|g, _| last[g]} - news.sub!(/^\*( +)The following #{type} gems? are updated\.\n\K(?: \1\* .*\n)*/) do - mark = "#{$1} * " + news.sub!(/^\*( +)The following #{type} gems? are updated\.\n+\K(?: \1\*( +).*\n)*/) do + mark = "#{$1} *#{$2}" changed.map {|g, v|"#{mark}#{g} #{v}\n"}.join("") end or next - news.sub!(/^\*( +)The following default gems are now bundled gems\.\n\K(?: \1\* .*\n)*/) do - mark = "#{$1} * " + news.sub!(/^\*( +)The following default gems are now bundled gems\.\n+\K(?: \1\*( +).*\n)*/) do + mark = "#{$1} *#{$2}" added.map {|g, v|"#{mark}#{g} #{v}\n"}.join("") end or next if added File.write("NEWS.md", news) |