From 0d3cedeee8ad44899c96658e88db3d361edfe298 Mon Sep 17 00:00:00 2001 From: Yuki Fukuma Date: Wed, 29 Apr 2026 17:14:47 +0900 Subject: [PATCH 1/4] Replace outdated help.github.com URLs with docs.github.com --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4d22faf2..6e87d6c32 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,8 @@ jobs: ``` See the GitHub Actions documentation for more details about the -[workflow syntax](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions) -and the [condition and expression syntax](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions). +[workflow syntax](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions) +and the [condition and expression syntax](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions). ### Supported Version Syntax @@ -252,7 +252,7 @@ Note that running CI on Windows can be quite challenging if you are not very fam It is recommended to first get your build working on Ubuntu and macOS before trying Windows. * Use Bundler 2.2.18+ on Windows (older versions have [bugs](https://github.com/ruby/setup-ruby/issues/209#issuecomment-889064123)) by not setting the `bundler:` input and ensuring there is no `BUNDLED WITH 1.x.y` in a checked-in `Gemfile.lock`. -* The default shell on Windows is not Bash but [PowerShell](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell). +* The default shell on Windows is not Bash but [PowerShell](https://docs.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell). This can lead issues such as multi-line scripts [not working as expected](https://github.com/ruby/setup-ruby/issues/13). * The `PATH` contains [multiple compiler toolchains](https://github.com/ruby/setup-ruby/issues/19). Use `where.exe` to debug which tool is used. * For Ruby ≥ 2.4, MSYS2 is prepended to the `Path`, similar to what RubyInstaller2 does. From 9962ed36332fd292930b2bc466947d90793dde78 Mon Sep 17 00:00:00 2001 From: Yuki Fukuma Date: Wed, 29 Apr 2026 17:23:58 +0900 Subject: [PATCH 2/4] Update Ruby version examples in README to include 4.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e87d6c32..e4c91df3a 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ jobs: - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.4' # Not needed with a .ruby-version, .tool-versions or mise.toml + ruby-version: '4.0' # Not needed with a .ruby-version, .tool-versions or mise.toml bundler-cache: true # runs 'bundle install' and caches installed gems automatically - run: bundle exec rake ``` @@ -98,7 +98,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', head, jruby, jruby-head, truffleruby, truffleruby-head] + ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', head, jruby, jruby-head, truffleruby, truffleruby-head] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 @@ -127,7 +127,7 @@ jobs: - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.4' + ruby-version: '4.0' bundler-cache: true # runs 'bundle install' and caches installed gems automatically - run: bundle exec rake ``` From 242760d541f8e239ad1f01e2beed424812ec5195 Mon Sep 17 00:00:00 2001 From: Yuki Fukuma Date: Wed, 29 Apr 2026 17:34:40 +0900 Subject: [PATCH 3/4] Remove EOL Ruby versions from matrix example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4c91df3a..351a236df 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0', head, jruby, jruby-head, truffleruby, truffleruby-head] + ruby: ['3.3', '3.4', '4.0', head, jruby, jruby-head, truffleruby, truffleruby-head] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 From 7ddcc1f7f118b79d7ffd515d0df83f354d5e6e8f Mon Sep 17 00:00:00 2001 From: Yuki Fukuma Date: Thu, 30 Apr 2026 05:48:02 +0900 Subject: [PATCH 4/4] Fix docs.github.com URLs to avoid 301 redirects --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 351a236df..f8eee1b31 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,8 @@ jobs: ``` See the GitHub Actions documentation for more details about the -[workflow syntax](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions) -and the [condition and expression syntax](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions). +[workflow syntax](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax) +and the [condition and expression syntax](https://docs.github.com/en/actions/reference/workflows-and-actions/contexts). ### Supported Version Syntax @@ -252,7 +252,7 @@ Note that running CI on Windows can be quite challenging if you are not very fam It is recommended to first get your build working on Ubuntu and macOS before trying Windows. * Use Bundler 2.2.18+ on Windows (older versions have [bugs](https://github.com/ruby/setup-ruby/issues/209#issuecomment-889064123)) by not setting the `bundler:` input and ensuring there is no `BUNDLED WITH 1.x.y` in a checked-in `Gemfile.lock`. -* The default shell on Windows is not Bash but [PowerShell](https://docs.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell). +* The default shell on Windows is not Bash but [PowerShell](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#using-a-specific-shell). This can lead issues such as multi-line scripts [not working as expected](https://github.com/ruby/setup-ruby/issues/13). * The `PATH` contains [multiple compiler toolchains](https://github.com/ruby/setup-ruby/issues/19). Use `where.exe` to debug which tool is used. * For Ruby ≥ 2.4, MSYS2 is prepended to the `Path`, similar to what RubyInstaller2 does.