From aa69e29a3a6abe6bb70e87b4f226fd76def62e47 Mon Sep 17 00:00:00 2001 From: Thomas Boyer Chammard <49786685+thomas-bc@users.noreply.github.com> Date: Fri, 9 Jun 2023 14:28:32 -0700 Subject: [PATCH] Disable some CI checks on docs updates (#2076) * ignore docs/ and **.md * always trigger python-format --- .github/workflows/build-led-blinker.yml | 3 +++ .github/workflows/build-test-macos.yml | 5 ++++- .github/workflows/build-test-rpi.yml | 3 +++ .github/workflows/build-test.yml | 3 +++ .github/workflows/codeql-jpl-standard.yml | 3 +++ .github/workflows/codeql-security-scan.yml | 3 +++ .github/workflows/cppcheck-scan.yml | 3 +++ .github/workflows/cpplint-scan.yml | 3 +++ .github/workflows/python-format.yml | 8 +++++++- 9 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-led-blinker.yml b/.github/workflows/build-led-blinker.yml index 5cd68d85d0..7d08a05723 100644 --- a/.github/workflows/build-led-blinker.yml +++ b/.github/workflows/build-led-blinker.yml @@ -7,6 +7,9 @@ on: branches: [ master, devel ] pull_request: branches: [ master, devel ] + paths-ignore: + - 'docs/**' + - '**.md' jobs: run: diff --git a/.github/workflows/build-test-macos.yml b/.github/workflows/build-test-macos.yml index 2de9038f70..44edc18ac3 100644 --- a/.github/workflows/build-test-macos.yml +++ b/.github/workflows/build-test-macos.yml @@ -8,7 +8,10 @@ on: push: branches: [ master, devel ] pull_request: - branches: [ master, devel, release/v3.0.0 ] + branches: [ master, devel, release/v3.0.0 ] + paths-ignore: + - 'docs/**' + - '**.md' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/build-test-rpi.yml b/.github/workflows/build-test-rpi.yml index d7da1ad373..4083f64856 100644 --- a/.github/workflows/build-test-rpi.yml +++ b/.github/workflows/build-test-rpi.yml @@ -9,6 +9,9 @@ on: branches: [ master, devel ] pull_request: branches: [ master, devel, release/v3.0.0 ] + paths-ignore: + - 'docs/**' + - '**.md' env: RPI_TOOLCHAIN_DIR: /tmp/rpi-toolchain DICTIONARY_PATH: build-artifacts/raspberrypi/RPI/dict/RPITopologyAppDictionary.xml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index ce0a7f1554..56110a35e6 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -9,6 +9,9 @@ on: branches: [ master, devel ] pull_request: branches: [ master, devel, release/v3.0.0 ] + paths-ignore: + - 'docs/**' + - '**.md' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/codeql-jpl-standard.yml b/.github/workflows/codeql-jpl-standard.yml index 150ebe1594..cc894f8500 100644 --- a/.github/workflows/codeql-jpl-standard.yml +++ b/.github/workflows/codeql-jpl-standard.yml @@ -9,6 +9,9 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ master, devel ] + paths-ignore: + - 'docs/**' + - '**.md' jobs: analyze: diff --git a/.github/workflows/codeql-security-scan.yml b/.github/workflows/codeql-security-scan.yml index 41509f86ae..af72c623d3 100644 --- a/.github/workflows/codeql-security-scan.yml +++ b/.github/workflows/codeql-security-scan.yml @@ -9,6 +9,9 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ master, devel ] + paths-ignore: + - 'docs/**' + - '**.md' jobs: analyze: diff --git a/.github/workflows/cppcheck-scan.yml b/.github/workflows/cppcheck-scan.yml index 09da2b5b33..83a7430cd7 100644 --- a/.github/workflows/cppcheck-scan.yml +++ b/.github/workflows/cppcheck-scan.yml @@ -7,6 +7,9 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ master, devel ] + paths-ignore: + - 'docs/**' + - '**.md' jobs: diff --git a/.github/workflows/cpplint-scan.yml b/.github/workflows/cpplint-scan.yml index 2a90fb54c8..ec913ceee2 100644 --- a/.github/workflows/cpplint-scan.yml +++ b/.github/workflows/cpplint-scan.yml @@ -6,6 +6,9 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [master, devel] + paths-ignore: + - 'docs/**' + - '**.md' jobs: cpplint: diff --git a/.github/workflows/python-format.yml b/.github/workflows/python-format.yml index 742fb3930f..ed5c6cddef 100644 --- a/.github/workflows/python-format.yml +++ b/.github/workflows/python-format.yml @@ -1,6 +1,12 @@ name: Format Python -on: [push, pull_request] +on: + push: + branches: [master, devel] + pull_request: + # The branches below must be a subset of the branches above + branches: [master, devel] + jobs: format: name: Format