In my GitHub actions flow, I am using actions/upload-artifact@v3
. Lately I've been getting the following warning:
The following actions uses Node.js version which is deprecated and will be forced to run on node20:
actions/upload-artifact@v3
. For more info: /changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
This issue was being tracked here, with the solution to upgrade to upload-artifact@v4. The problem is that v4 is not available on GitHub Enterprise Server (GHES).
I found that upload-artifact cut a release for node 20 and there is a v3-node20 tag, which tells me they have made support for v3 + node20. My question is: how can I use this release? Trying actions/upload-artifact@v3-node20
and actions/[email protected]
both throw errors:
Unable to resolve action
actions/upload-artifact@v3-node20
, unable to find versionv3-node20
In my GitHub actions flow, I am using actions/upload-artifact@v3
. Lately I've been getting the following warning:
The following actions uses Node.js version which is deprecated and will be forced to run on node20:
actions/upload-artifact@v3
. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
This issue was being tracked here, with the solution to upgrade to upload-artifact@v4. The problem is that v4 is not available on GitHub Enterprise Server (GHES).
I found that upload-artifact cut a release for node 20 and there is a v3-node20 tag, which tells me they have made support for v3 + node20. My question is: how can I use this release? Trying actions/upload-artifact@v3-node20
and actions/[email protected]
both throw errors:
Unable to resolve action
actions/upload-artifact@v3-node20
, unable to find versionv3-node20
According to the following examples:
We can refer a git tag as version version with the syntax you shared:
actions/acme-reository@tag
Suggestion: Try with actions/[email protected] and share us the result
Usually using @xyz you can access directly to the branch or tag.
The branch you are trying to use is special because it has "/" in the branch name: v3/node20. Maybe this is the error
Suggestion: Try with
actions/upload-artifact@v3/node20
If the previous approaches doesn't work, it could be:
To validate if it is an error related only to specific versions of actions/upload-artifact or GHES: