actions / upload-artifact

MIT License
3.03k stars 686 forks source link

[bug] Specified argument was out of the range of valid values #467

Closed madhusameena closed 7 months ago

madhusameena commented 7 months ago

What happened?

When I use the action

- name: Upload artifacts
        uses: actions/upload-artifact@v4.0.0
        with:
          name: Build-Artifacts
          path: |
            coverage/
            test-results/*.xml

But got the below error

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' 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)
Error: Fail to load actions/upload-artifact/v4.0.0/action.yml

Same thing is working fine when I use v3.1.2

What did you expect to happen?

Upload artifacts

How can we reproduce it?

Use 4.0 version on Ubuntu 18.04

Anything else we need to know?

No response

What version of the action are you using?

4.0.0

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

robherley commented 7 months ago

👋 Unfortunately using ubuntu 18.04 runners/images are deprecated:

You should upgrade your runner version, you'll run into this issue on any actions that uses node20