fix(pptx): make archive bytes clock-independent #166
Workflow file for this run
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: Scaffold Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| scaffold-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run agent improvement loop (deterministic only) | |
| run: npm run agent:improve | |
| continue-on-error: true | |
| - name: Run scaffold check | |
| id: scaffold | |
| run: npx tsx scripts/scaffold-check.ts --base=origin/main | |
| continue-on-error: true | |
| - name: Read scaffold handoff | |
| id: handoff | |
| if: always() | |
| run: | | |
| if [ -f docs/eval/scaffold-handoff.md ]; then | |
| echo "exists=true" >> $GITHUB_OUTPUT | |
| cat docs/eval/scaffold-handoff.md > /tmp/scaffold-handoff.md | |
| else | |
| echo "exists=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Post scaffold report as PR comment | |
| if: always() && steps.handoff.outputs.exists == 'true' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| const handoff = fs.readFileSync('/tmp/scaffold-handoff.md', 'utf-8'); | |
| const body = handoff.length > 65000 | |
| ? handoff.slice(0, 65000) + '\n\n*(truncated — see full report in docs/eval/scaffold-handoff.md)*' | |
| : handoff; | |
| // Find existing scaffold comment | |
| const comments = await github.rest.issues.listComments({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| }); | |
| const existing = comments.data.find(c => | |
| c.user.login === 'github-actions[bot]' && | |
| c.body?.includes('# Scaffold Handoff') | |
| ); | |
| if (existing) { | |
| await github.rest.issues.updateComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| comment_id: existing.id, | |
| body, | |
| }); | |
| } else { | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body, | |
| }); | |
| } | |
| - name: Fail if scaffold check failed | |
| if: steps.scaffold.outcome == 'failure' | |
| run: | | |
| echo "❌ Scaffold check failed." | |
| echo "See the PR comment for details." | |
| exit 1 | |
| - name: Upload scaffold artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: scaffold-report | |
| path: | | |
| docs/eval/scaffold-handoff.md | |
| docs/eval/scaffold-report.json | |
| docs/eval/agent-improvement-loop/latest.json |