[GH-ISSUE #276] Ruby version not found #192

Closed
opened 2026-03-01 21:41:04 +03:00 by kerem · 4 comments
Owner

Originally created by @huseyin on GitHub (Jun 14, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/276

I'm getting the following error when trying to run my workflow.

[test/Run linters] 🚀  Start image=node:12.6-buster-slim
[test/Run linters]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[test/Run linters]   🐳  docker cp src=/home/huseyin/Work/github.com/omu/ik/. dst=/github/workspace
[test/Run linters] ⭐  Run Checkout code
[test/Run linters]   ✅  Success - Checkout code
[test/Run linters] ⭐  Run Setup Ruby
[test/Run linters]   ☁  git clone 'https://github.com/actions/setup-ruby' # ref=v1
[test/Run linters]   🐳  docker cp src=/home/huseyin/.cache/act/actions-setup-ruby@v1 dst=/actions/
[test/Run linters]   💬  ##[debug]isExplicit: 2.7.1
[test/Run linters]   💬  ##[debug]explicit? true
[test/Run linters]   💬  ##[debug]checking cache: /opt/hostedtoolcache/Ruby/2.7.1/x64
[test/Run linters]   💬  ##[debug]not found
[test/Run linters]   ❗  ##[error]Version 2.7.1 not found
[test/Run linters]   ❌  Failure - Setup Ruby
Error: exit with `FAILURE`: 1

Here is the related configuration in my workflow:

jobs:
  lint:
    name: Run linters
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Setup Ruby
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.7.1

I use the standard actions provided by GitHub instead of containers. The error is also reproduced with different Ruby versions such as 2.6.1 and 2.6.5

Originally created by @huseyin on GitHub (Jun 14, 2020). Original GitHub issue: https://github.com/nektos/act/issues/276 I'm getting the following error when trying to run my workflow. ``` [test/Run linters] 🚀 Start image=node:12.6-buster-slim [test/Run linters] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [test/Run linters] 🐳 docker cp src=/home/huseyin/Work/github.com/omu/ik/. dst=/github/workspace [test/Run linters] ⭐ Run Checkout code [test/Run linters] ✅ Success - Checkout code [test/Run linters] ⭐ Run Setup Ruby [test/Run linters] ☁ git clone 'https://github.com/actions/setup-ruby' # ref=v1 [test/Run linters] 🐳 docker cp src=/home/huseyin/.cache/act/actions-setup-ruby@v1 dst=/actions/ [test/Run linters] 💬 ##[debug]isExplicit: 2.7.1 [test/Run linters] 💬 ##[debug]explicit? true [test/Run linters] 💬 ##[debug]checking cache: /opt/hostedtoolcache/Ruby/2.7.1/x64 [test/Run linters] 💬 ##[debug]not found [test/Run linters] ❗ ##[error]Version 2.7.1 not found [test/Run linters] ❌ Failure - Setup Ruby Error: exit with `FAILURE`: 1 ``` Here is the related configuration in my workflow: ``` jobs: lint: name: Run linters runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Setup Ruby uses: actions/setup-ruby@v1 with: ruby-version: 2.7.1 ``` I use the standard actions provided by GitHub instead of containers. The error is also reproduced with different Ruby versions such as `2.6.1` and `2.6.5`
kerem 2026-03-01 21:41:04 +03:00
Author
Owner

@cplee commented on GitHub (Jun 15, 2020):

dup #107

<!-- gh-comment-id:644235500 --> @cplee commented on GitHub (Jun 15, 2020): dup #107
Author
Owner

@stoplion commented on GitHub (Aug 19, 2020):

Running into same

<!-- gh-comment-id:676553887 --> @stoplion commented on GitHub (Aug 19, 2020): Running into same
Author
Owner

@DeuterGraves commented on GitHub (Oct 30, 2020):

Mine was working for a while but now I'm getting this error.

<!-- gh-comment-id:719814756 --> @DeuterGraves commented on GitHub (Oct 30, 2020): Mine was working for a while but now I'm getting this error.
Author
Owner

@Yuji-Kuroko commented on GitHub (Nov 25, 2020):

The 'act' uses docker image is old.
Please add - run: ls /opt/hostedtoolcache/Ruby to yaml.
ls output is available ruby version list.

my cases,

act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 pull_request
# output. available ruby versions.
 2.4.9  2.5.7  2.6.5  2.7.0

Becareful, this command will download docker image of about 18GB.

<!-- gh-comment-id:733736195 --> @Yuji-Kuroko commented on GitHub (Nov 25, 2020): The 'act' uses docker image is old. Please add `- run: ls /opt/hostedtoolcache/Ruby` to yaml. `ls` output is available ruby version list. my cases, ``` act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 pull_request ``` ``` # output. available ruby versions. 2.4.9 2.5.7 2.6.5 2.7.0 ``` Becareful, this command will download docker image of about 18GB.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#192
No description provided.