From 3a6a64e1471f6dff319597a68832e5cc46909b2d Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Fri, 24 Jan 2025 12:00:00 +0100 Subject: [PATCH] CI: When only Hugo docs change, other workflows do not need to run Signed-off-by: Bernhard Kaindl --- .github/workflows/main.yml | 7 +++++++ .github/workflows/other.yml | 7 +++++++ .github/workflows/shellcheck.yaml | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 580b27f6288..e80122bd007 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,15 @@ name: Build and test on: + # When only Hugo docs change, this workflow is not required: push: + paths-ignore: + - 'doc/**' + - '.github/workflows/hugo.yml' pull_request: + paths-ignore: + - 'doc/**' + - '.github/workflows/hugo.yml' schedule: # run daily, this refreshes the cache - cron: "13 2 * * *" diff --git a/.github/workflows/other.yml b/.github/workflows/other.yml index d6ad9c849a6..90d6f57a2d0 100644 --- a/.github/workflows/other.yml +++ b/.github/workflows/other.yml @@ -1,8 +1,15 @@ name: Build and test (other) on: + # When only Hugo docs change, this workflow is not required: push: + paths-ignore: + - 'doc/**' + - '.github/workflows/hugo.yml' pull_request: + paths-ignore: + - 'doc/**' + - '.github/workflows/hugo.yml' schedule: # run daily, this refreshes the cache - cron: "13 2 * * *" diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml index b078eaba549..2a41d80da51 100644 --- a/.github/workflows/shellcheck.yaml +++ b/.github/workflows/shellcheck.yaml @@ -2,6 +2,10 @@ name: ShellCheck on: pull_request: + # When only Hugo docs change, this workflow is not required: + paths-ignore: + - 'doc/**' + - '.github/workflows/hugo.yml' merge_group: concurrency: # On new push, cancel old workflows from the same PR, branch or tag: