From cc8151e3b23a7b13cb3a81c1c6aafa55ef9ad806 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 5 Jun 2024 15:57:29 -0700 Subject: [PATCH] aider: Add paths-ignore condition under the push event in workflows to prevent running if only files in the `website/` subtree are changed. # Aider chat conversation: USER: do we need that under the `push:` too? ASSISTANT: Yes, we should add the `paths-ignore` condition under the `push` event as well to ensure the workflows do not run if only files in the `website/` subtree are changed. Here are the updated *SEARCH/REPLACE* blocks: .github/workflows/windows-tests.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/windows-tests.yml ```yaml <<<<<<< SEARCH push: ======= push: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/docker-build-test.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/docker-build-test.yml ```yaml <<<<<<< SEARCH push: ======= push: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/ubuntu-tests.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/ubuntu-tests.yml ```yaml <<<<<<< SEARCH push: ======= push: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` --- .github/workflows/docker-build-test.yml | 4 ++++ .github/workflows/ubuntu-tests.yml | 4 ++++ .github/workflows/windows-tests.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index e0bc60474..88600943a 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -2,9 +2,13 @@ name: Docker Build Test on: push: + paths-ignore: + - 'website/**' branches: - main pull_request: + paths-ignore: + - 'website/**' paths-ignore: - 'website/**' branches: diff --git a/.github/workflows/ubuntu-tests.yml b/.github/workflows/ubuntu-tests.yml index ee8d826df..7bea0130d 100644 --- a/.github/workflows/ubuntu-tests.yml +++ b/.github/workflows/ubuntu-tests.yml @@ -2,9 +2,13 @@ name: Ubuntu Python Tests on: push: + paths-ignore: + - 'website/**' branches: - main pull_request: + paths-ignore: + - 'website/**' paths-ignore: - 'website/**' branches: diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index 6fa48a350..ff159ad33 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -2,9 +2,13 @@ name: Windows Python Tests on: push: + paths-ignore: + - 'website/**' branches: - main pull_request: + paths-ignore: + - 'website/**' paths-ignore: - 'website/**' branches: