Skip to content

dotnet-format on Pull Request

Actions
Run dotnet-format on Pull Request
v1
Latest
Star (0)

action-dotnet-format

dotnet-format for GitHub Actions

Usage

See action.yml

Basic:

steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-dotnet@v4
    with:
      dotnet-version: '8.0.x'
  - uses: tsubakimoto/action-dotnet-format@v1
    with:
      base-branch: ${{ github.ref_name }}
      project-path: 'example.csproj'
      verbosity: 'diag'
      github-token: ${{ secrets.GITHUB_TOKEN }}

Permissions

The GITHUB_TOKEN secret is required to create a pull request.

Permission Value
contents write
pull_requests write

License

The scripts and documentation in this project are released under the MIT License

dotnet-format on Pull Request is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run dotnet-format on Pull Request
v1
Latest

dotnet-format on Pull Request is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.