Skip to content

Commit 1f84061

Browse files
ahdbilalAlenaSviridenkoskedwards88
authored
Update building-and-testing-ruby.md (github#17491)
* 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>
1 parent 989006b commit 1f84061

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

content/actions/guides/building-and-testing-ruby.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ jobs:
4949
steps:
5050
- uses: actions/checkout@v2
5151
- name: Set up Ruby
52-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
53-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
54-
# uses: ruby/setup-ruby@v1
55-
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
52+
uses: ruby/setup-ruby@v1
5653
with:
5754
ruby-version: 2.6
5855
- name: Install dependencies
@@ -66,7 +63,7 @@ jobs:
6663
6764
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).
6865

69-
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.
66+
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.
7067

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

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

0 commit comments

Comments
 (0)