Skip to content

Bump the npm_and_yarn group across 2 directories with 2 updates #636

Bump the npm_and_yarn group across 2 directories with 2 updates

Bump the npm_and_yarn group across 2 directories with 2 updates #636

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Format
on:
push:
branches-ignore: [main]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install csharpier
run: dotnet tool restore
- name: Format with csharpier
# If branch is renovate we want to format and commit the changes
if: startsWith(github.event.ref, 'refs/heads/renovate')
run: dotnet tool run dotnet-csharpier .
- name: Commit changes
# If branch is renovate we want to format and commit the changes
if: startsWith(github.event.ref, 'refs/heads/renovate')
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: format code with csharpier"
commit_author: "Renovate Bot <renovate[bot]@users.noreply.github.com>"
# If branch is not renovate we just want to check the formatting
- name: Check formatting with csharpier
run: dotnet tool run dotnet-csharpier . --check