Weekly benchmarks review #6
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: Weekly benchmarks review | |
| # Opens a GitHub issue every Monday at 14:00 UTC (07:00 PT) summarizing | |
| # whether data/benchmarks.json likely needs updating. Operator triages | |
| # the issue, edits the file if a new flagship dropped, otherwise closes. | |
| # See scripts/weekly-benchmarks-check.mjs for the report body logic. | |
| on: | |
| schedule: | |
| - cron: '0 14 * * 1' # 14:00 UTC every Monday | |
| workflow_dispatch: # allow manual runs from the Actions tab | |
| permissions: | |
| issues: write | |
| contents: read | |
| jobs: | |
| open-review-issue: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'RipperMercs/tensorfeed' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| - name: Generate report body | |
| id: report | |
| run: | | |
| node scripts/weekly-benchmarks-check.mjs > issue-body.md | |
| { | |
| echo "title=Weekly benchmark review: $(date -u +%Y-%m-%d)" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Open issue | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh issue create \ | |
| --title "${{ steps.report.outputs.title }}" \ | |
| --body-file issue-body.md \ | |
| --label "benchmarks,maintenance" |