question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such file or directory, open '/github/workspace/.github/labels.json'

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oalderscommented, Oct 1, 2019

@lannonbr I will do this tomorrow. 😃

1reaction
oalderscommented, Oct 1, 2019

This fixed the issue for me as well. Might be helpful for the README to include this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found