You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we pass a absolute path to node-version-file, for example, when using with Composite Actions, the resulting path is resolved incorrectly, due to a path.join() call.
If it can check whether provided node-version-file exists as is, or perhaps use path.resolve(), it won't break with absolute paths.
Actual behavior:
Error: The specified node version file at: /home/runner/work/mediasession/mediasession/home/runner/work/_actions/w3c/spec-prod/fix-nvmrc/.nvmrc does not exist
^^^
The text was updated successfully, but these errors were encountered:
Hi folks, I'm running into this issue as well, trying to use ${{ github.action_path }}/.tool-versions but it tries to append the path to the current directory.
It's a pretty frustrating and unexpected behavior as far as I can tell. Any hope to see a fix to this soon? 🙌
Apologies for the pings, but it looks like Dmitry hasn't been active on this project in a long time, and this issue may have slipped through the cracks. It would be awesome if someone could take a look at this and any other issues that may have been buried.
Description:
If we pass a absolute path to
node-version-file
, for example, when using with Composite Actions, the resulting path is resolved incorrectly, due to apath.join()
call.setup-node/src/main.ts
Lines 96 to 100 in 5e21ff4
Action version:
v3
Platform:
Runner type:
Tools version:
Repro steps:
.nvmrc
, use following as input:Example broken action run: https://github.com/sidvishnoi/mediasession/actions/runs/6158104300/job/16710218833?pr=1
Expected behavior:
If it can check whether provided
node-version-file
exists as is, or perhaps usepath.resolve()
, it won't break with absolute paths.Actual behavior:
The text was updated successfully, but these errors were encountered: