Ignore non-code files in CI workflow triggers

Updated the GitHub Actions workflow to ignore changes to documentation, images, and other non-code files when triggering on push and pull_request events. This reduces unnecessary CI runs for changes that do not affect the codebase.
This commit is contained in:
xixu-me committed 2025-11-14 16:40:57 +08:00
1 parent 8b2402b14e
commit 94636cae36
1 file changed
+18
+18
View File
@@ -5,8 +5,26 @@ permissions:
on:
push:
branches: [main, develop]
paths-ignore:
- "**.md"
- "docs/**"
- "LICENSE"
- ".gitignore"
- ".editorconfig"
- "images/**"
- "screenshots/**"
- ".vscode/**"
pull_request:
branches: [main]
paths-ignore:
- "**.md"
- "docs/**"
- "LICENSE"
- ".gitignore"
- ".editorconfig"
- "images/**"
- "screenshots/**"
- ".vscode/**"
workflow_dispatch:
jobs: