Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Commit 827e86f

Browse files
committed
Simplify
1 parent cc30ef3 commit 827e86f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@
44
<a href="https://github.com/actions/setup-ruby"><img alt="GitHub Actions status" src="https://github.com/actions/setup-ruby/workflows/Main%20workflow/badge.svg"></a>
55
</p>
66

7-
This action sets up Ruby for use in actions by adding to the `PATH` a version of Ruby already existing in the toolcache.
8-
The toolcache is the set of tools preinstalled in [virtual environments](https://github.com/actions/virtual-environments).
7+
This action sets up Ruby for use in actions by adding Ruby to the `PATH`.
8+
This action only supports Ruby versions already installed in the virtual environments ([Ubuntu](https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md), [macOS](https://github.com/actions/virtual-environments/blob/master/images/macos/macos-10.15-Readme.md), [Windows](https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md)).
9+
Because Ruby versions in the virtual environments are updated over time, it is **necessary to use a version range** such as `2.6.x` and not exact versions.
10+
Note that the lists of versions above might not always reflect the current versions as changes are rolled out over several days.
911

10-
This action currently only supports versions of Ruby in the toolcache.
11-
See [this list](https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md) for the available Ruby versions.
12-
Note that the list might not always reflect the current versions as changes are rolled out over several days.
13-
The action will fail if no matching versions are found.
14-
15-
Because versions in the toolcache are updated over time, it is **necessary to use a version range** such as `2.6.x` and not exact versions.
16-
17-
If you are looking for using exact versions (e.g., `2.6.5`) of Ruby, or to use JRuby or TruffleRuby,
12+
If you want to use exact versions (e.g., `2.6.5`) of Ruby, or to use JRuby or TruffleRuby,
1813
please take a look at other actions such as [use-ruby-action](https://github.com/eregon/use-ruby-action).
1914
Note that there are [plans](https://github.com/actions/setup-ruby/issues/44) to support installing prebuilt Rubies with this action in the future.
2015

0 commit comments

Comments
 (0)