Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Add a 'working-directory' option #157

@drummerjolev

Description

@drummerjolev

Please describe your suggestion: 提案の概要

I have a monorepo where subdirectories are NPM packages, each with their own package.json. I want to run ESLint from each subdirectory only on modified files in a PR, and want to use this action to provide the list of files that were changed.

However, the action runs in the root by default, where there is package.json. So the list always looks like: [subdirectory/**/file, etc.]. Whereas I would like to receive it as [**/file, etc.]

Describe the solution you'd like: 考えうる解決方法

A working-directory option, similarly to run e.g.:
Screenshot 2021-07-01 at 17 03 53

Then, git diff could run with the --relative flag.

Describe alternatives you've considered: 考えうる代替案

Using bash to process the file names returned by the action – doable but very cumbersome.

Additional context: 補足

n/a

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions