ci: always validate docs and safely ignore documentation-only changes
This commit is contained in:
1 parent
e9dcaaa22c
commit
864749c61c
3 files changed
+8
-29
No files matched your search
+7
-16
@@ -3,23 +3,14 @@ name: ci
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "cmd/**"
|
||||
- "internal/**"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- ".golangci.yml"
|
||||
- ".goreleaser.yaml"
|
||||
- ".gitea/workflows/ci.yml"
|
||||
paths-ignore:
|
||||
# Keep embedded Markdown templates in CI; paths-ignore cannot undo a match.
|
||||
- "*.md"
|
||||
- "docs/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- "cmd/**"
|
||||
- "internal/**"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- ".golangci.yml"
|
||||
- ".goreleaser.yaml"
|
||||
- ".gitea/workflows/ci.yml"
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
- "docs/**"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
||||
Reference in new issue
Block a user