You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,23 +152,6 @@ and the [condition and expression syntax](https://help.github.com/en/actions/ref
152
152
The `working-directory` input can be set to resolve `.ruby-version`, `.tool-versions`, `mise.toml` and `Gemfile.lock`
153
153
if they are not at the root of the repository, see [action.yml](action.yml) for details.
154
154
155
-
### Authentication Token
156
-
157
-
By default, this action uses `${{ github.token }}` to authenticate when downloading Ruby release assets from GitHub.
158
-
This helps avoid rate limiting issues.
159
-
160
-
If you're running this action on a GitHub Enterprise Server (GHES) instance, or if you're experiencing rate limiting,
161
-
you can provide a custom token:
162
-
163
-
```yaml
164
-
- uses: ruby/setup-ruby@v1
165
-
with:
166
-
ruby-version: '3.4'
167
-
token: ${{ secrets.MY_GITHUB_TOKEN }}
168
-
```
169
-
170
-
In most cases, you don't need to set this input as the default value is sufficient for use on github.com.
171
-
172
155
### RubyGems
173
156
174
157
By default, the default RubyGems version that comes with each Ruby is used.
@@ -247,6 +230,22 @@ It is also possible to cache gems manually, but this is not recommended because
247
230
There are many concerns which means using `actions/cache` is never enough for caching gems (e.g., incomplete cache key, cleaning old gems when restoring from another key, correctly hashing the lockfile if not checked in, OS versions, ABI compatibility for `ruby-head`, etc).
248
231
So, please use `bundler-cache: true` instead and report any issue.
249
232
233
+
### Authentication Token
234
+
235
+
By default, this action uses `${{ github.token }}` to authenticate when downloading Ruby release assets from GitHub.
236
+
This helps avoid rate limiting issues.
237
+
238
+
If you're running this action on a GitHub Enterprise Server (GHES) instance, or if you're experiencing rate limiting,
239
+
you can provide a custom token:
240
+
241
+
```yaml
242
+
- uses: ruby/setup-ruby@v1
243
+
with:
244
+
token: ${{ secrets.MY_GITHUB_TOKEN }}
245
+
```
246
+
247
+
In most cases, you don't need to set this input as the default value is sufficient for use on github.com.
248
+
250
249
## Windows
251
250
252
251
Note that running CI on Windows can be quite challenging if you are not very familiar with Windows.
0 commit comments