From 9715fd14a8765ecab720936c4d5c00617de37812 Mon Sep 17 00:00:00 2001 From: Matt Stajduhar Date: Mon, 6 Jun 2022 08:26:52 -0400 Subject: [PATCH] ci : change workflow logic Skip CI runs when changes are only made to docs ref: [issue #835] --- .github/workflows/e2e-test.yml | 4 ++++ .github/workflows/pr.yml | 2 ++ .github/workflows/snapshot-releases.yml | 2 ++ .github/workflows/sonar.yml | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 1796f2f5dc..e5afc10fe5 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -3,8 +3,12 @@ name: Integration & End to End tests on: pull_request: + paths-ignore: + - 'docs/**' branches: [ main, next ] push: + paths-ignore: + - 'docs/**' branches: - main - next diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 268b71946a..dad988bfd4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,6 +8,8 @@ concurrency: cancel-in-progress: true on: pull_request: + paths-ignore: + - 'docs/**' branches: [ main, v1, v2, next ] workflow_dispatch: jobs: diff --git a/.github/workflows/snapshot-releases.yml b/.github/workflows/snapshot-releases.yml index 40fde077c0..866e50e133 100644 --- a/.github/workflows/snapshot-releases.yml +++ b/.github/workflows/snapshot-releases.yml @@ -8,6 +8,8 @@ concurrency: cancel-in-progress: true on: push: + paths-ignore: + - 'docs/**' branches: [ main, v1, v2, next ] workflow_dispatch: jobs: diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index e23c0564a7..56c29d00d4 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -8,8 +8,12 @@ concurrency: cancel-in-progress: true on: push: + paths-ignore: + - 'docs/**' branches: [ main ] pull_request: + paths-ignore: + - 'docs/**' types: [ opened, synchronize, reopened ] jobs: