From 4b0b7ec216ec1a1f337a3a37b2c514bcd6842629 Mon Sep 17 00:00:00 2001 From: rusty-snake <41237666+rusty-snake@users.noreply.github.com> Date: Sun, 29 Nov 2020 14:04:22 +0000 Subject: Update build.yml (#3779) * Update build.yml Currently we run all actions for all commits. This is not resource friendly. Let's tweak this a bit. This commit adds support for "skip ci" tags (i.e. if the head commit contains [s k i p c i] (w/o the extra spaces used to escape here), no jobs are executed. In addition are all commits which modify non-code files (e.g. README) only excluded. Furthermore we should not run cppcheck and scan-build if only profiles are changed and sort.py need only to be execute if profiles are changed. * Create sort.yml * Update build.yml profile-sort is now in sort.yml * Update sort.yml fix syntax * Update codeql-analysis.yml paths-ignore: - CONTRIBUTING.md - README - README.md - RELNOTES - SECURITY.md - 'etc/**' * Create build-extra.yml * Update build.yml * Update build-extra.yml --- .github/workflows/codeql-analysis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.github/workflows/codeql-analysis.yml') diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a37bbb5c7..301c7fad2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,9 +8,23 @@ name: "CodeQL" on: push: branches: [master] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' pull_request: # The branches below must be a subset of the branches above branches: [master] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' schedule: - cron: '0 7 * * 2' -- cgit v1.2.3-54-g00ecf