Describe the bugStep 6: Trigger the joke action will end up causing the error below
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node18' is not supported, use 'docker', 'node12' or 'node16' instead.')
at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Start the course of writing-javascript-actions in CentOS Stream 9 environment (for example)
In Step 1: Initialize a new JavaScript project, install Node.js by following official document from dnf
Doing so will only give learners to the option to go with ver.18
$ LANG=C;sudo dnf module list nodejs
Last metadata expiration check: 1:01:07 ago on Mon Oct 24 02:53:19 2022.
CentOS Stream 9 - AppStream
Name Stream Profiles Summary
nodejs 18 [e] common [d] [i], development, minimal, s2i Javascript runtime
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
In later of the course, define ver.18 instead of 12 in .github/actions/joke-action/action.yml
since it is the version can only be installed
runs:
using: "node18"
main: "main.js"
$ LANG=C;sudo dnf module install nodejs:12
Last metadata expiration check: 1:24:00 ago on Mon Oct 24 02:53:19 2022.
Error: Problems in request:
missing groups or modules: nodejs:12
When learners reached to Step 6: Trigger the joke action and Check the workflow results on the "Actions tab, they will face the error of
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node18' is not supported, use 'docker', 'node12' or 'node16' instead.')
at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Device information
Any OS environment where the package management system (including the third-party one such as Homebrew in macOS) offers Node.js installation only of ver.18
Describe the bug
Step 6: Trigger the joke action
will end up causing the error belowhttps://github.com/nshun583/writing-javascript-actions/actions/runs/3308162573
To Reproduce Steps to reproduce the behavior:
writing-javascript-actions
in CentOS Stream 9 environment (for example)Step 1: Initialize a new JavaScript project
, install Node.js by following official document from dnf.github/actions/joke-action/action.yml
since it is the version can only be installedStep 6: Trigger the joke action
andCheck the workflow results on the "Actions tab
, they will face the error ofExpected behavior Since GitHub.Runner is still not supporting Node.js ver.18 as the environment variable, https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
Don't forget to set up your workstation
section inStep 1: Initialize a new JavaScript project
should notify learners not to install ver.18 and offer the way to intentionally install ver.12 or 16 with the alternative methodScreenshots None
Device information Any OS environment where the package management system (including the third-party one such as Homebrew in macOS) offers Node.js installation only of ver.18
Additional context None