Skip to content

Commit

Permalink
CI: When only Hugo docs change, other workflows do not need to run
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed Jan 27, 2025
1 parent 0499324 commit 3a6a64e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 * * *"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
@@ -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 * * *"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3a6a64e

Please sign in to comment.