Skip to content

Commit

Permalink
Add new input: working_directory (#27)
Browse files Browse the repository at this point in the history
* add working-directory.

* change working-directory key to snake_case.

Co-authored-by: Ryo Nakamura <[email protected]>

---------

Co-authored-by: Ryo Nakamura <[email protected]>
  • Loading branch information
yasuzuki and r7kamura authored Feb 21, 2023
1 parent 2bdcf9c commit 2a27fd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ If you use GitHub App to generate access tokens, the permission would look like
- Pass `"false"` if you want it to include unsafe autocorrection.
- optional

### `working_directory`

- Specify working directory.
- optional
- default: `"."`

## Example

The below example is how we use this in our company:
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ inputs:
description: Exclude unsafe cops.
required: false
default: "true"
working_directory:
description: Working directory.
required: false
default: "."
runs:
using: composite
steps:
Expand Down Expand Up @@ -107,6 +111,7 @@ runs:
env:
GITHUB_TOKEN: ${{ inputs.github_token || github.token }}
shell: bash
working-directory: ${{ inputs.working_directory }}
branding:
color: red
icon: git-pull-request

0 comments on commit 2a27fd0

Please sign in to comment.