|
49 | 49 | steps:
|
50 | 50 | - uses: actions/checkout@v2
|
51 | 51 | - 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 |
56 | 53 | with:
|
57 | 54 | ruby-version: 2.6
|
58 | 55 | - name: Install dependencies
|
|
66 | 63 |
|
67 | 64 | 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).
|
68 | 65 |
|
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. |
70 | 67 |
|
71 | 68 | The `setup-ruby` action takes a Ruby version as an input and configures that version on the runner.
|
72 | 69 |
|
@@ -122,10 +119,7 @@ jobs:
|
122 | 119 | steps:
|
123 | 120 | - uses: actions/checkout@v2
|
124 | 121 | - 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 |
129 | 123 | with:
|
130 | 124 | ruby-version: ${{ matrix.ruby-version }}
|
131 | 125 | - name: Install dependencies
|
|
0 commit comments