diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 55cef96a..5e3e4714 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,5 +1,17 @@ name: Format sourcecode -on: [push, pull_request] +on: + push: + branches: master + paths: + - '.github/workflows/format.yml' + - 'src/**.c' + - 'src/**.h' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/format.yml' + - 'src/**.c' + - 'src/**.h' jobs: format: runs-on: ubuntu-latest