From 455d78117826cc7cba24ac3ff4e8faa6eae2115c Mon Sep 17 00:00:00 2001 From: nauta Date: Wed, 27 Sep 2023 15:38:07 +0800 Subject: [PATCH] Update codeql.yml --- .github/workflows/codeql.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6733bb3a9..b1c0cf5e2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,10 +1,8 @@ name: CodeQL on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + schedule: + - cron: "0 0 * * 1" # every Monday jobs: codeql: @@ -42,16 +40,11 @@ jobs: with: languages: cpp - - name: Build init - run: | - bash build.sh init - - name: Build project shell: bash run: | rm -rf build_debug - bash build.sh debug - cd build_debug && make -j4 && cd - + bash build.sh debug --init --make -j3 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2