diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml index 18ffbe3729faf..0ea664030f978 100644 --- a/.github/workflows/cpp-linter.yml +++ b/.github/workflows/cpp-linter.yml @@ -1,9 +1,7 @@ name: cpp-linter on: - pull_request: - branches: '**' - paths: ['.github/workflows/cpp-linter.yml', '**.c', '**.cpp', '**.h', '**.inl', '**CMakeLists.txt', '**.cmake'] + pull_request: {} push: branches: [main] paths: ['.github/workflows/cpp-linter.yml', '**.c', '**.cpp', '**.h', '**.inl', '**CMakeLists.txt', '**.cmake']