Conductor Cleanup #728
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Conductor Cleanup | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # Every 6 hours | |
| workflow_dispatch: | |
| jobs: | |
| cleanup-stale-work: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| pip install pyyaml | |
| - name: Clean up abandoned worktrees | |
| run: | | |
| python .conductor/scripts/cleanup-worktrees.py | |
| - name: Archive completed tasks | |
| run: | | |
| python .conductor/scripts/archive-completed.py | |
| - name: Commit cleanup changes | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: '🧹 Cleanup stale work and archive completed tasks' | |
| file_pattern: '.conductor/*.json' |