Skip to content

Fix Workflow Trigger Paths to Include Configuration Folders#14

Merged
JeremyDev87 merged 1 commit into
masterfrom
fix/13
Dec 17, 2025
Merged

Fix Workflow Trigger Paths to Include Configuration Folders#14
JeremyDev87 merged 1 commit into
masterfrom
fix/13

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Fix Workflow Trigger Paths to Include Configuration Folders

📋 Summary

Expands GitHub Actions workflow trigger paths to include core configuration folders (.ai-rules/, .antigravity/, .claude/, .codex/, .cursor/, scripts/). This ensures that canary and dev builds trigger when these critical project configuration files change.

Resolves #13

🎯 Problem

Before This Change

GitHub workflows (codebuddy-canary.yml, codebuddy-dev.yml) only triggered on changes within the mcp-server/ folder. However, several critical configuration folders were excluded:

  • .ai-rules/ - AI rules definitions that are copied into mcp-server/ during prepublishOnly and included in the npm package
  • .antigravity/ - Antigravity (Gemini) configuration
  • .claude/ - Claude Code configuration
  • .codex/ - GitHub Copilot configuration
  • .cursor/ - Cursor AI configuration
  • scripts/ - Build/deployment scripts

Impact

When changes were made to these folders (especially .ai-rules/), workflows did not trigger, requiring manual intervention or changes to mcp-server/ to trigger builds. This was problematic because:

  1. .ai-rules/ changes are included in the npm package via prepublishOnly script
  2. Configuration changes should trigger new builds to ensure consistency
  3. Manual workflow triggers were needed, reducing automation

✨ Solution

Changes Made

Added 6 new path patterns to both workflow files:

paths:
  - 'mcp-server/**'
  - '.ai-rules/**'      # ← Added
  - '.antigravity/**'   # ← Added
  - '.claude/**'        # ← Added
  - '.codex/**'         # ← Added
  - '.cursor/**'        # ← Added
  - 'scripts/**'        # ← Added
  - .github/workflows/codebuddy-canary.yml  # or codebuddy-dev.yml

Files Modified

  • .github/workflows/codebuddy-canary.yml (+6 lines)
  • .github/workflows/codebuddy-dev.yml (+6 lines)

Total: 2 files changed, +12 insertions

✅ Benefits

  1. Automated Builds: Configuration changes now automatically trigger canary/dev builds
  2. Consistency: Ensures .ai-rules/ changes are properly packaged and deployed
  3. Reduced Manual Work: No need to manually trigger workflows or make dummy changes
  4. Better CI/CD: All critical project files are now monitored for changes

🧪 Testing

  • Workflow files syntax validated
  • Path patterns follow GitHub Actions conventions
  • No impact on existing mcp-server/** trigger behavior
  • Verify workflow triggers on .ai-rules/ changes (manual test after merge)
  • Verify workflow triggers on .claude/ changes (manual test after merge)

Issues

resolve #13

@JeremyDev87 JeremyDev87 self-assigned this Dec 17, 2025
- Include .ai-rules, .antigravity, .claude, .codex, .cursor, scripts
- Update canary and dev workflow triggers

Ensures builds trigger when core configuration files change.

resolve #13
@JeremyDev87 JeremyDev87 marked this pull request as ready for review December 17, 2025 09:58
@JeremyDev87 JeremyDev87 merged commit 8f8d3ae into master Dec 17, 2025
1 check passed
@JeremyDev87 JeremyDev87 deleted the fix/13 branch December 21, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand GitHub Workflow Trigger Paths

2 participants