Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't use custom config #60

Closed
Chosey98 opened this issue Jul 17, 2021 · 5 comments
Closed

[BUG] Can't use custom config #60

Chosey98 opened this issue Jul 17, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@Chosey98
Copy link

What exactly happened?
Steps to reproduce the behavior:

  1. Run the action with prettier_options: --config ./.prettier.json --write **/*.js
  2. See error

What should've happened?
It should have used the file that's there but instead I got

Error:  Invalid configuration file `events/error.js`: ENOENT: no such file or directory, open '/github/workspace/.prettier.json'
@Chosey98 Chosey98 added the bug Something isn't working label Jul 17, 2021
@Chosey98 Chosey98 changed the title [BUG] [BUG] Can't use custom config Jul 17, 2021
@Chosey98
Copy link
Author

@creyD you said in #41 that it works for you but it keeps on erroring out for me no idea why... The file is there though
https://gyazo.com/9726ba833df302c44d1f0435298b8f27

@creyD
Copy link
Owner

creyD commented Jul 18, 2021

Could you try with .github/workflows/.prettier.json?

@Chosey98
Copy link
Author

It worked tysm but now it errors because it cant push to the protected branch is there a way to be able to push to it?

@Chosey98
Copy link
Author

My main branch is protected due having any changes on sub branches first

@creyD
Copy link
Owner

creyD commented Jul 18, 2021

No. When you want to use the action to push to a branch it can't be protected. You could use the dry run feature for this, but then it doesn't apply the changes.

@creyD creyD closed this as completed Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants