Fix CI: ruby/setup-ruby doesn't recognize "file" as a version keyword
CI / check (push) Successful in 5m47s
CI / check (push) Successful in 5m47s
Omitting ruby-version entirely triggers its actual auto-detection from .ruby-version — "file" was a mistaken guess and failed with "Unknown engine file".
This commit is contained in:
1 parent
7f2ad57d1a
commit
f186a3e8ef
1 file changed
+3
-1
@@ -10,9 +10,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# No ruby-version input: the action auto-detects it from
|
||||||
|
# .ruby-version when the input is omitted (not "file", which isn't
|
||||||
|
# a recognized value and fails with "Unknown engine file").
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: file # reads .ruby-version
|
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
|
||||||
- name: Ruby syntax check
|
- name: Ruby syntax check
|
||||||
|
|||||||
Reference in new issue
Block a user