checkout icon indicating copy to clipboard operation
checkout copied to clipboard

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

Open jascsch opened this issue 5 months ago • 3 comments

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

jascsch avatar Mar 27 '24 10:03 jascsch