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

Don't run by default #18

Open
asarkar opened this issue Dec 27, 2022 · 3 comments
Open

Don't run by default #18

asarkar opened this issue Dec 27, 2022 · 3 comments

Comments

@asarkar
Copy link

asarkar commented Dec 27, 2022

It looks like uses: mrkkrp/ormolu-action@v8 immediately starts executing ormolu. This is unexpected and rarely intended. I expected the action to simply setup Ormolu, and not do anything unless told. I invoke Ormolu from a shell script so that my local build can be consistent with my GitHub CI. I also pass options to Ormolu and those should be consistent too.

I guess back to stack install ormolu for me. Too bad, because it takes forever to compile it.

On the aside, it would be helpful to see examples of passing the inputs documented here. I don't understand how to specify the pattern more than once.

@mrkkrp
Copy link
Collaborator

mrkkrp commented Jan 2, 2023

I added a link to an example of the syntax for multiple patterns.

@asarkar
Copy link
Author

asarkar commented Jan 2, 2023

I added a link ...

Thank you. You added default, so I'm guessing for a user, it'll be like the following?

pattern: |
  **/*.hs
  **/*.hs-boot

@mrkkrp
Copy link
Collaborator

mrkkrp commented Jan 2, 2023

Yes, exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants