I have created a JavaScript automation and in that script I have created couple of YML files and I'm importing them using fs and js-yaml libraries. I have hosted this code in repo A.
I want to convert my repo A into a GitHub action. I have followed the documentation from GitHub to create JavaScript action. I have used the verbal/ncc to create one file with all my libraries as suggested by GitHub.
But when I use this action in repo B, I get an error saying the yml files are not available at the mentioned path.
Does GitHub workflow download the action's repo during execution? if yes, how can I pass these yml files into the script?
If not, what are the options to pass these files into script?