Relative path to 'main' in local action #25320
-
Hello, I’m setting up a repository with a workflow that uses a local JavaScript action. The action’s My abbreviated directory structure:
.github/workflows/deploy-auth0-tenants.yml
.github/actions/auth0-deploy/action.yml
The error I get is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @macdaddyaz, Glad to see you in Github Community Forum! My repo for your reference: https://github.com/weide-zhou/hello-github-actions/tree/master/.github/actions/auth0-deploy Thanks |
Beta Was this translation helpful? Give feedback.
-
Thank you for the help, @weide-zhou. It looks like it’s an issue with a tool I was using to test my actions locally. Once I pushed the code up to GitHub, the action was able to run just fine. I’ll open an issue with that project. |
Beta Was this translation helpful? Give feedback.
Hi @macdaddyaz,
Glad to see you in Github Community Forum!
I followed your repo structure and create own one, same setting but no error reported.
Your error should be caused by incorrect location specified somewhere for dist/index.js. Do you have other setting?
After the checkout action, before your own action, please use “cd .github…” and ‘ls -al’ to check your folder strucuture. If it looks fine, please check your .json and yaml if there are some location specified.
My repo for your reference: https://github.com/weide-zhou/hello-github-actions/tree/master/.github/actions/auth0-deploy
My workflow: https://github.com/weide-zhou/hello-github-actions/actions/runs/140467606/workflow
Thanks