diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2021-11-24 17:05:33 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-01 07:15:17 +0900 |
commit | 42efb8c1859c89490cad9bf9312dc3e743f730ee (patch) | |
tree | 21aed5ea8dc9811fefc27ef46df83bc06d2226fe | |
parent | 7fd88da935c7c6fcafe19cf30642676033ec82bd (diff) | |
download | ruby-42efb8c1859c89490cad9bf9312dc3e743f730ee.tar.gz |
[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
-rw-r--r-- | lib/bundler/templates/newgem/github/workflows/main.yml.tt | 4 |
1 files 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 952cd649a2..774cb263bf 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: jobs: build: runs-on: ubuntu-latest - + name: Ruby ${{ matrix.ruby }} strategy: matrix: ruby: - - <%= RUBY_VERSION %> + - '<%= RUBY_VERSION %>' steps: - uses: actions/checkout@v2 |