Skip to content

Fix: Paths-filter logic for CI/CD triggers - #136

Merged
JaegerCaiser merged 2 commits into
developfrom
fix/paths-filter-final
Nov 7, 2025
Merged

Fix: Paths-filter logic for CI/CD triggers#136
JaegerCaiser merged 2 commits into
developfrom
fix/paths-filter-final

Conversation

@JaegerCaiser

Copy link
Copy Markdown
Owner

🔧 Final Fix for Paths-Filter Logic

This PR implements the correct paths-filter logic to handle documentation changes properly in CI/CD workflows.

Changes

  • Dual-filter approach: Separate code and docs filters instead of complex exclusions
  • Code filter: Includes source code, configs, and workflows (always triggers CI/CD)
  • Docs filter: Includes only important documentation (blogs .mdx, README, CHANGELOG, CUSTOMIZATION)
  • Logic: CI/CD runs if code OR important docs changed

Behavior

  • Code changes: Always trigger CI/CD
  • Blog changes (.mdx): Trigger CI/CD (to publish blogs)
  • Important docs: Trigger CI/CD (README, CHANGELOG, etc.)
  • Random docs: Don't trigger CI/CD (saves resources)

Testing

  • Verify code changes still trigger CI/CD
  • Verify blog changes trigger CI/CD and get published
  • Verify random documentation changes don't trigger unnecessary builds
  • Verify CI/CD passes all checks

- Update docs filter to include ALL .md, .mdx, .txt files in repository
- Exclude .github/**/*.md files (workflow docs should trigger CI/CD)
- Add exclusions in code filter to prevent overlap
- Now properly filters documentation changes anywhere in the repo
- Blogs and other docs will still trigger CI/CD, pure docs won't
- Code filter: includes source code, configs, and workflows
- Docs filter: includes only important docs (blogs, README, CHANGELOG, CUSTOMIZATION)
- Logic: CI/CD runs if code OR important docs changed
- Blogs will be published, random docs won't trigger unnecessary builds
- Clean and maintainable filter configuration
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

A pré-visualização para este PR foi atualizada.

Recurso Link
🔗 URL de Preview URL de Preview
📜 Logs do Deploy Ver logs da Action

Commit: 404f25bab167f7f2897b39721d0e939a8caf67eb

@JaegerCaiser
JaegerCaiser merged commit 36a0a63 into develop Nov 7, 2025
4 checks passed
@github-actions
github-actions Bot deleted the fix/paths-filter-final branch November 7, 2025 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant