Skip to content

Commit

Permalink
update other ci actions to only run when they should
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Jul 4, 2024
1 parent faefdb8 commit 68d581d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
pull_request_target:
branches:
- "*"
paths:
- 'components/*'
- 'main/*'
- 'sdkconfig.defaults'
- 'partitions.csv'
- '.github/workflows/static_analysis.yml'

jobs:
static_analysis:
Expand Down

0 comments on commit 68d581d

Please sign in to comment.