Bhacaz / checkout-files

Github Action checkout only certain files
MIT License
35 stars 10 forks source link

Invalid Arg Type error #16

Open h-Nystrom opened 2 years ago

h-Nystrom commented 2 years ago

Hi, I've tried this action on two of my repositories. My new test repository is working flawless, but I keep getting this error message on my older repo do you know what the issue could be?

Run h-nystrom/checkout-files@v2 with: files: Plugins token: ***

node:internal/errors:464 ErrorCaptureStackTrace(err); ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined at new NodeError (node:internal/errors:371:5) at Function.from (node:buffer:322:9) at saveContent (/home/runner/work/_actions/h-nystrom/checkout-files/v2/index.js:34:32) at /home/runner/work/_actions/h-nystrom/checkout-files/v2/index.js:28:13 at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'ERR_INVALID_ARG_TYPE'

Bhacaz commented 2 years ago

Hi, thanks for the report.

Looking at the error, checkout-files/v2/index.js:34:32, it seems that data.content is empty.

h-Nystrom commented 2 years ago

Ok, interesting. The folder structure is (both repos share the same hierarchy): ./Plugins/PluginA/File1.h ./Plugins/PluginB/File2.h ... I basically want to checkout all files in that folder. Could the issue be that it doesn't find the folder in the root of my old repo?

Thanks for the help! :)

pl4nty commented 1 year ago

It doesn't appear to support subfolders :(