ruby-changes:69994
From: Olle <ko1@a...>
Date: Wed, 1 Dec 2021 07:15:35 +0900 (JST)
Subject: [ruby-changes:69994] 42efb8c185 (master): [rubygems/rubygems] newgem templ: Avoid Float 3.0 -> "3" in GH Action
https://git.ruby-lang.org/ruby.git/commit/?id=42efb8c185 From 42efb8c1859c89490cad9bf9312dc3e743f730ee Mon Sep 17 00:00:00 2001 From: Olle Jonsson <olle.jonsson@g...> Date: Wed, 24 Nov 2021 17:05:33 +0100 Subject: [rubygems/rubygems] newgem templ: Avoid Float 3.0 -> "3" in GH Action This change avoids a YAML Float-to-String conversion, which turns a 3.0 into a "3". That can make names of builds less clear. In order to use this new capability, I added a "name" descriptor to the matrix-created Job. https://github.com/rubygems/rubygems/commit/6221241ad4 --- lib/bundler/templates/newgem/github/workflows/main.yml.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/lib/bundler/templates/newgem/github/workflows/main.yml.tt index 952cd649a24..774cb263bf5 100644 --- a/lib/bundler/templates/newgem/github/workflows/main.yml.tt +++ b/lib/bundler/templates/newgem/github/workflows/main.yml.tt @@ -10,11 +10,11 @@ on: https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/github/workflows/main.yml.tt#L10 jobs: build: runs-on: ubuntu-latest - + name: Ruby ${{ matrix.ruby }} strategy: matrix: ruby: - - <%= RUBY_VERSION %> + - '<%= RUBY_VERSION %>' steps: - uses: actions/checkout@v2 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/