-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 921 Bytes
/
synthesize.yml
File metadata and controls
36 lines (30 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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