[前][次][番号順一覧][スレッド一覧]

ruby-changes:70237

From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Dec 2021 17:56:02 +0900 (JST)
Subject: [ruby-changes:70237] ded33ed5b8 (master): Update stdlib in NEWS

https://git.ruby-lang.org/ruby.git/commit/?id=ded33ed5b8

From ded33ed5b8d923b0bb707b4e617ba02dde404188 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 15 Dec 2021 17:42:48 +0900
Subject: Update stdlib in NEWS

---
 .github/workflows/check_misc.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index 2a59e74066a..0c6e46580a5 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -22,3 +22,30 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_misc.yml#L22
             git grep -l -F -e $header -e HAVE_`echo $header | tr a-z./ A-Z__` -- . > /dev/null || echo $header
           done | grep -F .
         working-directory: include
+      - name: Maintain updated default gem list
+        run: |
+          news = File.read("NEWS.md")
+          gems = Dir.glob("{ext,lib}/**/*.gemspec").map {|f|
+            spec = Gem::Specification.load(f)
+            [spec.name, spec.version]
+          }.sort
+          news.sub!(/^\*\s+The following default gem are updated\.\K(\n\s+\*\s+)((?i:RubyGems))(?:\1.*)*/) do
+            ["", $2, gems.map {|*spec| spec.join(" ")}].join($1)
+          end or exit
+          File.write("NEWS.md", news)
+        shell: ruby {0}
+      - name: Check diffs
+        id: diff
+        run: |
+          git diff --no-ext-diff --ignore-submodules --exit-code NEWS.md
+        continue-on-error: true
+      - name: Commit
+        run: |
+          git pull --ff-only origin ${GITHUB_REF#refs/heads/}
+          git commit --message="Update stdlib version at ${GITHUB_SHA:0:30} [ci skip]" NEWS.md
+          git push origin ${GITHUB_REF#refs/heads/}
+        env:
+          EMAIL: svn-admin@r...
+          GIT_AUTHOR_NAME: git
+          GIT_COMMITTER_NAME: git
+        if: ${{ steps.diff.outcome == 'failure' }}
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]