Skip to content

[OMBU-821] Name .tool-versions through setup-ruby's real input - #23

Merged
JuanVqz merged 1 commit into
mainfrom
feature/OMBU-821-setup-ruby-input
Aug 20, 2026
Merged

[OMBU-821] Name .tool-versions through setup-ruby's real input#23
JuanVqz merged 1 commit into
mainfrom
feature/OMBU-821-setup-ruby-input

Conversation

@JuanVqz

@JuanVqz JuanVqz commented Aug 20, 2026

Copy link
Copy Markdown
Member

Follow-up to #21, which merged before this fix was pushed.

Why

ruby/setup-ruby@v1 has no ruby-version-file input, so it warned on every run:

Unexpected input(s) 'ruby-version-file', valid inputs are ['ruby-version',
'rubygems', 'bundler', 'bundler-cache', 'working-directory', 'cache-version',
'self-hosted', 'windows-toolchain', 'token']

That name comes from actions/setup-python and setup-node, not from this
action. It is absent from v1, from the latest release v1.321.0, and from
master, so no version bump or pin fixes it.

The input was ignored, and the Ruby version still resolved, because with
ruby-version unset the action tries .ruby-version, then .tool-versions,
then mise.toml:

ruby-version: default
Using 4.0.6 as input from file .tool-versions
ruby 4.0.6 (2026-07-14 revision 03b6d3f889) +PRISM [x86_64-linux]

What changed

Rather than lean on that implicit lookup order, name the file through the input
that does exist. ruby-version accepts .ruby-version, .tool-versions and
mise.toml as literal values, per the action's README.

- uses: ruby/setup-ruby@v1
  with:
    ruby-version: .tool-versions
    bundler-cache: true

Note for skunk.fyi

skunk.fyi's workflow uses the same invalid ruby-version-file input and carries
the same warning. Worth the same fix there.

ruby/setup-ruby@v1 has no ruby-version-file input, so it warned on every run:
"Unexpected input(s) 'ruby-version-file'". That name comes from
actions/setup-python and setup-node, not from this action. It is absent from v1,
from the latest release v1.321.0, and from master, so no version bump fixes it.

The input was ignored and the version still resolved, because when ruby-version
is unset the action tries .ruby-version, then .tool-versions, then mise.toml.
Rather than lean on that implicit order, name the file through ruby-version,
which accepts '.ruby-version', '.tool-versions' or 'mise.toml' as literal
values.

skunk.fyi's workflow carries the same invalid input and needs the same fix.
@JuanVqz
JuanVqz force-pushed the feature/OMBU-821-setup-ruby-input branch from 0c579bd to a86fce1 Compare August 20, 2026 22:13
@JuanVqz JuanVqz changed the title [OMBU-821] Let setup-ruby read .tool-versions by default [OMBU-821] Name .tool-versions through setup-ruby's real input Aug 20, 2026
@JuanVqz
JuanVqz merged commit 0588f30 into main Aug 20, 2026
2 checks passed
@JuanVqz
JuanVqz deleted the feature/OMBU-821-setup-ruby-input branch August 20, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant