actions-marketplace-validations/dotnet-format-format
Run dotnet format and optionally apply any fixes
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 20, 2024
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/eero-dev_dotnet-format@641739880faf94e0d620879744516cb7bfe2068b # no releases — HEAD as of 2026-07-12tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo-token | The GITHUB_TOKEN secret | yes | — |
| action | The primary action `dotnet format` should perform. `check` for only checking, `fix` will also actually fix the formatting errors in the files. | no | check |
| only-changed-files | Only changed files in the current pull request should be formatted. Only works when the trigger is a pull request. | no | — |
| fail-fast | The job should fail if there's a formatting error. | no | true |
| workspace | The solution or project file to operate on. | yes | — |
| include | The files to include, delimited by space. | no | — |
| exclude | The files to exclude, delimited by space. | no | — |
| fix-whitespace | Removes whitespaces according to formatting rules. | no | — |
| fix-analyzers-level | Fixes styles from third-party analyzers. More on https://github.com/dotnet/format/blob/main/docs/3rd-party-analyzers.md | no | — |
| fix-style-level | Fixes styles according to formating rules. | no | — |
| log-level | Sets the logging verbosity of the dotnet format process. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic] | no | — |
Outputs
| name | description |
|---|---|
| has-changes | A value indicating if any files were formatted. If `action` is `check` we will inspect the exit code of `dotnet format` to be <> 0. If `action` is `fix` we see if there are changes to files with `git status -s`. |