name: 閾告笂 路 Brain Sync on: workflow_run: workflows: ["HLI Contract Check"] types: [completed] push: branches: [main] paths: - '.github/broadcasts/**' jobs: update-memory: name: 馃 鏇存柊閾告笂璁板繂 runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 with: ref: main - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - name: Update brain run: node scripts/update-brain.js - name: Process broadcasts run: node scripts/process-broadcasts.js - name: Commit brain update run: | git config user.name "閾告笂 (Zh霉Yu膩n)" git config user.email "zhuyuan@guanghulab.com" git add .github/persona-brain/ git diff --cached --quiet || git commit -m "馃 閾告笂璁板繂鏇存柊 路 $(date +%Y-%m-%d)" git push