Skip to content

Add support for specifying a working directory #28

@jkeuhlen

Description

@jkeuhlen

fourmolu seems to inherit extension information from the directory where it is launched. For us, this means that running this action in a shared mono-repo "works", but it's missing things like a default TemplateHaskell extension setting and so it misapplies a large portion of formatting.

e.g. our project layout is something like
repo
| - .github
| - workflows
| - haskell-backend
| - typescript-frontend

If you run the exact same commands from the haskell-backend directory, everything works great.

GHA does support a working-directory flag for all run: blocks: docs. That has to be implemented at the library level though to combine it with anything that "uses" a library action. Could something similar be added to this action that essentially does a cd into the directory where it should run from first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions