feat: upgrade PR review to Opus 4.8 and issue answers to Sonnet 4.6 (… #24
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: Update Knowledge Base | |
| on: | |
| push: | |
| branches: [master] | |
| paths-ignore: | |
| - '.github/workflows/**' | |
| workflow_dispatch: | |
| jobs: | |
| update-kb: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: "3.12" | |
| - uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
| aws-region: us-east-1 | |
| - name: Generate and upload KB | |
| run: | | |
| python3 src/scripts/generate_kb.py > kb.md | |
| SIZE=$(wc -c < kb.md | tr -d ' ') | |
| if [ "$SIZE" -lt 50000 ]; then | |
| echo "ERROR: KB too small ($SIZE bytes), refusing to upload" >&2 | |
| exit 1 | |
| fi | |
| aws s3 cp kb.md s3://${{ secrets.KB_S3_BUCKET }}/${{ secrets.KB_S3_KEY }} --quiet | |
| echo "Uploaded $SIZE bytes to s3://${{ secrets.KB_S3_BUCKET }}/${{ secrets.KB_S3_KEY }}" |