shane@jammy [/home/shane/docker/test2]$ stat /home/shane/docker/test2/parse-issue-form-action/dist/index.js
File: /home/shane/docker/test2/parse-issue-form-action/dist/index.js
action.yml
runs:
using: "node20"
main: "dist/index.js"
This was previously working working just fine. I setup an all new test to make sure it was not something with my environment, but got the exact same error. This is the sample test I setup:
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Test Action"
uses: ./parse-issue-form-action
with:
token: test
body: test
Note: Previously I place all my local actions in the ./.github folder, example: .github/parse-issue-form-action
I have tried this new test in both the ./.github directory and current working directory, but both throw the same error.
Additionally, I was also previously able to run my actions from source with a node_modules in the current working directory, but doing that also fails with the error Error: Cannot find module '@actions/core' when npm ls clearly shows it installed.
All my local actions started throwing this error:
Error: Cannot find module '/home/shane/docker/test2/parse-issue-form-action/dist/index.js'
But the file is clearly there:
action.yml
This was previously working working just fine. I setup an all new test to make sure it was not something with my environment, but got the exact same error. This is the sample test I setup:
Note: Previously I place all my local actions in the
./.github
folder, example:.github/parse-issue-form-action
I have tried this new test in both the./.github
directory and current working directory, but both throw the same error.Additionally, I was also previously able to run my actions from source with a
node_modules
in the current working directory, but doing that also fails with the errorError: Cannot find module '@actions/core'
whennpm ls
clearly shows it installed.Again, all this was previously working, just days ago, and now all fails. Did something change?
Full error for reference: