GitHub Action
dotnet-format on Pull Request
v1
Latest version
dotnet-format for GitHub Actions
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 }}
The GITHUB_TOKEN
secret is required to create a pull request.
Permission | Value |
---|---|
contents |
write |
pull_requests |
write |
The scripts and documentation in this project are released under the MIT License