No such file or directory, open '/github/workspace/.github/labels.json'
See original GitHub issueI have created my labels.json file inside of the appropriate /.github/
directory, but when I run the action, I get the following error message:
(node:1) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/github/workspace/.github/labels.json'
at Object.openSync (fs.js:439:3)
at Object.readFileSync (fs.js:344:35)
at run (/index.js:15:33)
at process._tickCallback (internal/process/next_tick.js:68:7)
It seems it is looking for the file in /github/workspace/.github/labels.json
for some reason. Is it possible the GITHUB_WORKSPACE
variable can be different for various repos? https://github.com/lannonbr/issue-label-manager-action/blob/master/index.js#L8-L12
Edit: if it helps, here’s the test repo I’m using for this: https://github.com/chrisblakley/Actions-Again/commit/23a9e0dd5c48b343a840dab577ccf9eee7a2703f/checks
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Ask Question - Stack Overflow
ENOENT: no such file or directory, open '. ... data/databases.json') fs.writeFileSync(aPath ,JSON.stringify(companyInfo, null, 2)).
Read more >r/node - Reddit
Error: ENOENT: no such file or directory, open '../data/addressBook.json'. BUT from the image you can see the file is correctly linked to ...
Read more >jq: error: Could not open file /repo/gitlab_provisioning_data ...
json : No such file or directory. Summary. If you exit out of the dev container before fully building an environment the gitlab...
Read more >@commercetools/github-labels - npm
GitHub labels are managed through the labels config file. The config must be in JSON format and can be defined in the following...
Read more >What is GitHub Labels? - GeeksforGeeks
The open source communities and projects need to be specific with all documentation and contributors' roadmaps as well as community guidelines ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lannonbr I will do this tomorrow. 😃
This fixed the issue for me as well. Might be helpful for the README to include this?