|
68 | 68 | exit 1 |
69 | 69 | fi |
70 | 70 |
|
| 71 | + - name: Check skills/ directory is up-to-date |
| 72 | + run: | |
| 73 | + echo "Checking if committed skills/ directory is up-to-date..." |
| 74 | + |
| 75 | + # Save current skills |
| 76 | + mv skills skills-committed |
| 77 | + |
| 78 | + # Regenerate skills (core rules only, matching default) |
| 79 | + uv run python src/convert_to_ide_formats.py |
| 80 | + |
| 81 | + # Compare |
| 82 | + if ! diff -r skills/ skills-committed/ > /dev/null 2>&1; then |
| 83 | + echo "❌ The skills/ directory is out of date!" |
| 84 | + echo "Please regenerate by running: python src/convert_to_ide_formats.py" |
| 85 | + echo "Then: git add skills/" |
| 86 | + diff -r skills/ skills-committed/ || true |
| 87 | + mv skills-committed skills |
| 88 | + exit 1 |
| 89 | + fi |
| 90 | + |
| 91 | + # Restore original |
| 92 | + rm -rf skills |
| 93 | + mv skills-committed skills |
| 94 | + echo "✅ Committed skills/ directory is up-to-date" |
| 95 | +
|
71 | 96 | - name: Test conversion to IDE formats |
72 | 97 | run: | |
73 | 98 | echo "Testing IDE format conversion..." |
@@ -116,30 +141,6 @@ jobs: |
116 | 141 |
|
117 | 142 | echo "✅ All IDE formats generated successfully" |
118 | 143 |
|
119 | | - - name: Check skills/ directory is up-to-date |
120 | | - run: | |
121 | | - echo "Checking if committed skills/ directory is up-to-date..." |
122 | | - |
123 | | - # Save current skills |
124 | | - mv skills skills-committed |
125 | | - |
126 | | - # Regenerate skills (core rules only, matching default) |
127 | | - uv run python src/convert_to_ide_formats.py |
128 | | - |
129 | | - # Compare |
130 | | - if ! diff -r skills/ skills-committed/ > /dev/null 2>&1; then |
131 | | - echo "❌ The skills/ directory is out of date!" |
132 | | - echo "Please regenerate by running: python src/convert_to_ide_formats.py" |
133 | | - echo "Then: git add skills/" |
134 | | - mv skills-committed skills |
135 | | - exit 1 |
136 | | - fi |
137 | | - |
138 | | - # Restore original |
139 | | - rm -rf skills |
140 | | - mv skills-committed skills |
141 | | - echo "✅ Committed skills/ directory is up-to-date" |
142 | | -
|
143 | 144 | - name: Summary |
144 | 145 | if: success() |
145 | 146 | run: | |
|
0 commit comments