Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby version not found #276

Closed
huseyin opened this issue Jun 14, 2020 · 4 comments
Closed

Ruby version not found #276

huseyin opened this issue Jun 14, 2020 · 4 comments
Labels
meta/duplicate This issue or pull request already exists

Comments

@huseyin
Copy link

huseyin commented Jun 14, 2020

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

@cplee cplee added the meta/duplicate This issue or pull request already exists label Jun 15, 2020
@cplee
Copy link
Contributor

cplee commented Jun 15, 2020

dup #107

@cplee cplee closed this as completed Jun 15, 2020
@stoplion
Copy link

Running into same

@DeuterGraves
Copy link

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

@Yuji-Kuroko
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants