fix: CodeQL only run with given paths changed

This commit is contained in:
hiro 2023-12-21 00:18:17 +07:00
parent aa834ed50c
commit aeab8edcca

View File

@ -13,9 +13,33 @@ name: "CodeQL"
on:
push:
branches: ["main"]
branches:
- main
paths:
- "electron/**"
- .github/workflows/jan-electron-linter-and-test.yml
- "web/**"
- "uikit/**"
- "package.json"
- "node_modules/**"
- "yarn.lock"
- "core/**"
- "extensions/**"
- "!README.md"
- "Makefile"
pull_request:
branches: ["main"]
branches:
- main
paths:
- "electron/**"
- .github/workflows/jan-electron-linter-and-test.yml
- "web/**"
- "uikit/**"
- "package.json"
- "node_modules/**"
- "yarn.lock"
- "Makefile"
jobs:
analyze: