From 8c474e44bbac39746318dc6e56430cd20ca1c9a2 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:48:11 -0700 Subject: [PATCH] [chore] skip workflows on readme changes This is a first attempt at not triggering all CI jobs for README file changes. Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- .github/workflows/build-and-test-windows.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 2 ++ .github/workflows/e2e-tests.yml | 4 ++++ .github/workflows/load-tests.yml | 2 ++ .github/workflows/prometheus-compliance-tests.yml | 4 ++++ .github/workflows/telemetrygen.yml | 4 ++++ 6 files changed, 20 insertions(+) diff --git a/.github/workflows/build-and-test-windows.yml b/.github/workflows/build-and-test-windows.yml index c049aa5159ab..1866f7ba4c48 100644 --- a/.github/workflows/build-and-test-windows.yml +++ b/.github/workflows/build-and-test-windows.yml @@ -6,11 +6,15 @@ on: - 'releases/**' tags: - 'v[0-9]+.[0-9]+.[0-9]+*' + paths-ignore: + - '**/README.md' merge_group: pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] branches: - main + paths-ignore: + - '**/README.md' env: TEST_RESULTS: testbed/tests/results/junit/results.xml # Make sure to exit early if cache segment download times out after 2 minutes. diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 23d0869c5af1..5a296dffcc13 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,6 +3,8 @@ name: "CodeQL Analysis" on: push: branches: [main] + paths-ignore: + - '**/README.md' jobs: CodeQL-Build: diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 6db812c45f04..49fc0c26a81f 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -6,7 +6,11 @@ on: - main tags: - 'v[0-9]+.[0-9]+.[0-9]+*' + paths-ignore: + - '**/README.md' pull_request: + paths-ignore: + - '**/README.md' merge_group: env: diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index 78d17231b906..7ff31d65b09a 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -4,6 +4,8 @@ on: branches: [ main ] tags: - 'v[0-9]+.[0-9]+.[0-9]+*' + paths-ignore: + - '**/README.md' # Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616 concurrency: diff --git a/.github/workflows/prometheus-compliance-tests.yml b/.github/workflows/prometheus-compliance-tests.yml index b8caf05bb450..ccb5ea944a4f 100644 --- a/.github/workflows/prometheus-compliance-tests.yml +++ b/.github/workflows/prometheus-compliance-tests.yml @@ -4,7 +4,11 @@ on: branches: [ main ] tags: - 'v[0-9]+.[0-9]+.[0-9]+*' + paths-ignore: + - '**/README.md' pull_request: + paths-ignore: + - '**/README.md' merge_group: # Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616 diff --git a/.github/workflows/telemetrygen.yml b/.github/workflows/telemetrygen.yml index e332de798a57..feebda6fa563 100644 --- a/.github/workflows/telemetrygen.yml +++ b/.github/workflows/telemetrygen.yml @@ -4,8 +4,12 @@ on: branches: [ main ] tags: - 'v[0-9]+.[0-9]+.[0-9]+*' + paths-ignore: + - '**/README.md' merge_group: pull_request: + paths-ignore: + - '**/README.md' env: # Make sure to exit early if cache segment download times out after 2 minutes. # We limit cache download as a whole to 5 minutes.