diff --git a/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt b/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt index 774cb263bf5c..2d774101514b 100644 --- a/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +++ b/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt @@ -14,7 +14,7 @@ jobs: strategy: matrix: ruby: - - '<%= RUBY_VERSION %>' + - '<%= RUBY_VERSION.split(".").take(2).join(".") %>' steps: - uses: actions/checkout@v2