From aeab8edcca0c1d18abbbf4c5b69b9cae73fff542 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 21 Dec 2023 00:18:17 +0700 Subject: [PATCH] fix: CodeQL only run with given paths changed --- .github/workflows/codeQL-analysis.yml | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeQL-analysis.yml b/.github/workflows/codeQL-analysis.yml index f1941239c..94411c4d2 100644 --- a/.github/workflows/codeQL-analysis.yml +++ b/.github/workflows/codeQL-analysis.yml @@ -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: