zyactions/ZyAction: .NET Format
A GitHub Action that wraps the .NET CLI `dotnet format` command.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | The working-directory for the action. Defaults to the repository root directory (`github.workspace`). If a specific .NET SDK version is to be used, the working directory must point to the directory that contains the `global.json` or a subdirectory of it. | no | ${{ github.workspace }} |
| workspace | The Visual Studio workspace (directory, project- or solution-file). This path is relative to the `working-directory` unless an absolute path is used. | no | "" |
| diagnostics | A newline-separated list of diagnostic IDs to use as a filter when fixing code style or third-party issues. Supports multiline strings. Default value is whichever IDs are listed in the `.editorconfig` file. | no | "" |
| severity | The minimum severity of diagnostics to fix. Possible values: - info - warn - error The default value is `warn`. | no | "" |
| verify-no-changes | Verifies that no formatting changes would be performed. Terminates with a non zero exit code if any files would have been formatted. | no | false |
| include | A newline-separated list of relative file or folder paths to include in formatting. The default is all files in the solution or project. Use `-` to read the list of files from the `pipe` input. | no | "" |
| exclude | A newline-separated list of relative file or folder paths to exclude from formatting. The default is none. Use `-` to read the list of files from the `pipe` input. | no | "" |
| report-path | Produces a JSON report in the specified directory. | no | "" |
| implicit-restore | Execute an implicit restore before formatting. | no | false |
| use-standalone-tool | Uses the standalone version of the `dotnet-format` tool instead of the version bundled with the .NET SDK. | no | false |
| pipe | An optional pipe input from which the `include` or `exclude` filenames are to be read. This must be set to a valid shell command line (bash) that can be used for piping. The command must output to `stdout` and separate the individual filenames by line breaks. WARNING: The command passed to this input will be evaluated and should not come from untrusted sources. | no | "" |
Outputs
no outputs