Skip to content

Update .githooks/prepare-commit-msg. #201

Update .githooks/prepare-commit-msg.

Update .githooks/prepare-commit-msg. #201

Workflow file for this run

name: Linter
on:
pull_request:
branches: [ main ]
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Restore dependencies
run: dotnet restore
- name: CSharpier format check
name: Linter check

Check failure on line 21 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linter-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Dotnet restore
run: dotnet tool restore
- name: CSharpier format check
run: |
dotnet csharpier . --check
echo "run 'dotnet csharpier .' to format the code automatically"
echo "run 'dotnet build' to fix the formatting of the code automatically"