diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index 2f00793b6..7d101f8ff 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -2,17 +2,25 @@ name: Format Check on: push: + branches: + - 'main' paths: - '**/*.{c,cpp,cc,cxx,h,hpp}' + pull_request: - types: [opened, edited, reopened, synchronize] + types: + - opened + - edited + - reopened + - synchronize + branches: + - 'main' paths: - '**/*.{c,cpp,cc,cxx,h,hpp}' jobs: format-check: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4