synthesize learnings #19
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: synthesize learnings | |
| on: | |
| schedule: | |
| - cron: '0 3 * * *' # Daily at 3 AM UTC | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| synthesize: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Synthesize learnings | |
| run: | | |
| python3 scripts/maintenance/synthesize_learnings.py | |
| - name: Commit if changed | |
| run: | | |
| git config user.name "iterate-evolve[bot]" | |
| git config user.email "iterate-evolve[bot]@users.noreply.github.com" | |
| if [[ -n $(git status -s memory/ACTIVE_LEARNINGS.md) ]]; then | |
| git add memory/ACTIVE_LEARNINGS.md | |
| git commit -m "chore: synthesize learnings" | |
| git pull --rebase origin main | |
| git push | |
| fi |