Skip to content

Add output from prettierrc into the github action logs #233

@espenjutte

Description

@espenjutte

We were adding some new documentation for our project and the workflow stopped on prettierrc. It would be usefull to get the actual error as part of the error output.

Right now it just says "[warn] Code style issues found in the above file. Run Prettier with --write to fix."

I dont know if is intentional or not, but would be helpfull to get a hint to fix it in the github action as well.

Current output:

Merged config written to ../.prettierrc
prettier --check --config ../.prettierrc docs/access.md
Checking formatting...
[warn] docs/access.md
[warn] Code style issues found in the above file. Run Prettier with --write to fix.
make: *** [/usr/local/share/techdocs/Makefile:113: format-check] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions