fix(sync): add business-growth and finance domains, fix main branch protection
- Add business-growth and finance to SKILL_DOMAINS in sync-codex-skills.py - Create symlinks for 5 new skills (customer-success-manager, sales-engineer, revenue-operations, financial-analyst, campaign-analytics) - Update skills-index.json (42 -> 47 skills, 7 categories) - Fix workflow to skip auto-commit on main (branch protection blocks direct pushes). Auto-commit only runs on dev; main gets a warning if out of sync. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
9
.github/workflows/sync-codex-skills.yml
vendored
9
.github/workflows/sync-codex-skills.yml
vendored
@@ -53,8 +53,8 @@ jobs:
|
||||
echo "has_changes=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Commit changes
|
||||
if: steps.check_changes.outputs.has_changes == 'true' && github.event.inputs.dry_run != 'true'
|
||||
- name: Commit changes (dev only)
|
||||
if: steps.check_changes.outputs.has_changes == 'true' && github.event.inputs.dry_run != 'true' && github.ref != 'refs/heads/main'
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "chore: sync codex skills symlinks [automated]"
|
||||
@@ -62,6 +62,11 @@ jobs:
|
||||
commit_user_name: "github-actions[bot]"
|
||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Warn if main has drift
|
||||
if: steps.check_changes.outputs.has_changes == 'true' && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
echo "::warning::Codex skills symlinks are out of sync on main. Run the sync on dev and merge via PR."
|
||||
|
||||
- name: Summary
|
||||
run: |
|
||||
echo "## Codex Skills Sync Summary" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
Reference in New Issue
Block a user