iterate social session #89
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: iterate social session | |
| on: | |
| schedule: | |
| - cron: '0 6,18 * * *' # Every 12 hours (6 AM + 6 PM UTC, offset from evolve) | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| discussions: write | |
| issues: write | |
| jobs: | |
| social: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Generate GitHub App token | |
| id: generate-token | |
| uses: tibdex/github-app-token@v2 | |
| with: | |
| app_id: ${{ secrets.APP_ID }} | |
| private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.generate-token.outputs.token }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: GrayCodeAI/iteragent | |
| path: iteragent-pkg | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Setup iteragent path | |
| run: | | |
| mkdir -p .. | |
| cp -r iteragent-pkg ../iteragent | |
| - name: Configure git | |
| run: | | |
| git config user.name "iterate-evolve[bot]" | |
| git config user.email "iterate-evolve[bot]@users.noreply.github.com" | |
| - name: Build iterate | |
| run: go build ./cmd/iterate | |
| - name: Run social session | |
| env: | |
| OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} | |
| OPENCODE_BASE_URL: https://opencode.ai/zen/go/v1 | |
| ITERATE_PROVIDER: opencode | |
| ITERATE_MODEL: mimo-v2-pro-free | |
| GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| run: | | |
| bash scripts/social/social.sh | |
| - name: Commit learnings | |
| run: | | |
| if [[ -n $(git status -s memory/social_learnings.jsonl memory/ACTIVE_SOCIAL_LEARNINGS.md) ]]; then | |
| git add memory/social_learnings.jsonl memory/ACTIVE_SOCIAL_LEARNINGS.md | |
| git commit -m "iterate: social session learnings $(date -u +'%Y-%m-%d %H:%M:%S')" || true | |
| git push || true | |
| fi |