actions/checkout@v4 does not work on self-hosted ubuntu 22.04
jascsch opened this issue · 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
Thank you for reporting this! We have encountered the same issue.
Can you confirm what version of the Actions Runner you are using? Upgrading to Node 20 outside the runner is not enough.
https://github.com/actions/runner/releases/tag/v2.308.0 is the minimum version to support Node 20.
@cory-miller current runner version is: 2.311.0