diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 580b27f628..e80122bd00 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 d6ad9c849a..90d6f57a2d 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 b078eaba54..2a41d80da5 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: