Skip to content

Commit

Permalink
Update building-and-testing-ruby.md (github#17491)
Browse files Browse the repository at this point in the history
* Update building-and-testing-ruby.md

we are deprecating actions/setup-ruby in favor of ruby/setup-ruby and our removing any reference from the docs.

* updated setup-ruby action tag

Co-authored-by: Alena Sviridenko <alenasviridenko@github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
  • Loading branch information
3 people authored Jan 29, 2021
1 parent 989006b commit 1f84061
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions content/actions/guides/building-and-testing-ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install dependencies
Expand All @@ -66,7 +63,7 @@ jobs:
The easiest way to specify a Ruby version is by using the `ruby/setup-ruby` action provided by the Ruby organization on GitHub. The action adds any supported Ruby version to `PATH` for each job run in a workflow. For more information see, the [`ruby/setup-ruby`](https://github.com/ruby/setup-ruby).

Using either Ruby's `ruby/setup-ruby` action or GitHub's `actions/setup-ruby` action is the recommended way of using Ruby with GitHub Actions because it ensures consistent behavior across different runners and different versions of Ruby.
Using Ruby's `ruby/setup-ruby` action is the recommended way of using Ruby with GitHub Actions because it ensures consistent behavior across different runners and different versions of Ruby.

The `setup-ruby` action takes a Ruby version as an input and configures that version on the runner.

Expand Down Expand Up @@ -122,10 +119,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
Expand Down

0 comments on commit 1f84061

Please sign in to comment.