diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04e0f8b..110aa07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,22 @@ name: Build -on: [pull_request] +on: + pull_request: + branches: [main] + paths: + - 'components/*' + - 'main/*' + - 'sdkconfig.defaults' + - 'partitions.csv' + - '.github/workflows/build.yml' + push: + branches: [main] + paths: + - 'components/*' + - 'main/*' + - 'sdkconfig.defaults' + - 'partitions.csv' + - '.github/workflows/build.yml' jobs: build: diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index a1c3520..954ec28 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -6,6 +6,12 @@ on: pull_request_target: branches: - "*" + paths: + - 'components/*' + - 'main/*' + - 'sdkconfig.defaults' + - 'partitions.csv' + - '.github/workflows/static_analysis.yml' jobs: static_analysis: