Use `paths` filter
This is needed to avoid unnecessary CodeQL scans.
This commit is contained in:
parent
b588bb74b9
commit
c4ef9e008f
|
@ -3,9 +3,17 @@ name: "CodeQL"
|
|||
on:
|
||||
push:
|
||||
branches: [ 'master' ]
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.cpp'
|
||||
- '**.h'
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above.
|
||||
branches: [ 'master' ]
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.cpp'
|
||||
- '**.h'
|
||||
schedule:
|
||||
- cron: '33 7 * * 6'
|
||||
|
||||
|
|
Loading…
Reference in New Issue