Skip to content

CI: When only Hugo docs change, other workflows do not need to run #6254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading