Skip to content

Commit

Permalink
add readme section for Args
Browse files Browse the repository at this point in the history
  • Loading branch information
znd4 committed Sep 24, 2024
1 parent 5e05472 commit bb6eb12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ To use a specific config, specify that with the `config-path` input:
config-path: dprint-ci.json
```

### Args

To pass additional arguments to `dprint check`, pass them to the `args` input. E.g. to only check changed files:

```yml
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
- uses: dprint/check@v2.2
with:
args: >-
--allow-no-files
${{ steps.changed-files.outputs.all_changed_files }}
```

## Troubleshooting

### Windows line endings
Expand Down

0 comments on commit bb6eb12

Please sign in to comment.