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

actions/checkout@v4 does not work on self-hosted ubuntu 22.04 #1667

Open
jascsch opened this issue Mar 27, 2024 · 1 comment
Open

actions/checkout@v4 does not work on self-hosted ubuntu 22.04 #1667

jascsch opened this issue Mar 27, 2024 · 1 comment

Comments

@jascsch
Copy link

jascsch commented Mar 27, 2024

Dear all,

the checkout@v4 cannot be used on Ubuntu 22.04.4 LTS.
the error message is:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.')

I already tried to use node16 instead but there is no chance to avoid using node20 in the action.yml

runs:
  using: node20
  main: dist/index.js
  post: dist/index.js

Is there any way to specify or override the node version in the action.yml file?
What I have already tried is this approach but it does not fix the issue:

strategy:
  matrix:
    node-version: ['16.x']

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@v4
  with:
    node-version: ${{ matrix.node-version }}

Please note that checkout@v3 works without any issues as it runs using node16. And yes, I have already updated the node version to v20 on the self hosted runner and it does not fix the issue.
Is there any workaround to fix this kind of issue?

Thanks in advance,
Jascha

@ivanaamit
Copy link

ivanaamit commented Mar 28, 2024

Thank you for reporting this! We have encountered the same issue.

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

No branches or pull requests

2 participants