actions-marketplace-validations/dotnet-format-action
Run dotnet format and optionally apply any fixes
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
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. In case you want to process all files in a certain folder, set the root folder here and specify the `workspaceIsFolder` option. | no | — |
| workspaceIsFolder | Specifies if the value in `workspace` has to be treated as a simple folder. If true, set `workspace` to the root folder you want to process. | no | false |
| include | The files to include, delimited by space. Cannot be used together with the `workspace` option. | 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 | — |
| logLevel | 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`. |