From a10077f6c9340ad9a1d213ceb7c605c9ecc23968 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 5 Jun 2024 15:56:58 -0700 Subject: [PATCH] aider: Ensure workflows do not run if only files in the `website/` subtree are changed. # Aider chat conversation: USER: these workflows currently run on any changes to the main branch; they don't need to run if only files in the wubsite/ subtree are changed ASSISTANT: To ensure the workflows do not run if only files in the `website/` subtree are changed, we can add a `paths-ignore` condition to each workflow. Here are the changes: .github/workflows/windows-tests.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/docker-build-test.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` .github/workflows/ubuntu-tests.yml ```yaml <<<<<<< SEARCH pull_request: ======= pull_request: paths-ignore: - 'website/**' >>>>>>> REPLACE ``` --- .github/workflows/docker-build-test.yml | 2 ++ .github/workflows/ubuntu-tests.yml | 2 ++ .github/workflows/windows-tests.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/docker-build-test.yml b/.github/workflows/docker-build-test.yml index 2f1378215..e0bc60474 100644 --- a/.github/workflows/docker-build-test.yml +++ b/.github/workflows/docker-build-test.yml @@ -5,6 +5,8 @@ on: branches: - main pull_request: + paths-ignore: + - 'website/**' branches: - main diff --git a/.github/workflows/ubuntu-tests.yml b/.github/workflows/ubuntu-tests.yml index a497e3189..ee8d826df 100644 --- a/.github/workflows/ubuntu-tests.yml +++ b/.github/workflows/ubuntu-tests.yml @@ -5,6 +5,8 @@ on: branches: - main pull_request: + paths-ignore: + - 'website/**' branches: - main diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index fd9e281a7..6fa48a350 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -5,6 +5,8 @@ on: branches: - main pull_request: + paths-ignore: + - 'website/**' branches: - main