name: Badge - Examples on: workflow_run: workflows: - Examples - Calc-X - Examples - Spider - Examples - APO - Examples - Unsloth - Examples - Tinker - Examples - Azure - Examples - Claude Code - Examples - RAG - Examples - ChartQA types: [completed] workflow_dispatch: permissions: actions: read contents: read jobs: badge: if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/github-script@v8 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | const badgeAggregation = require('./scripts/badge_aggregation.js'); const dependencies = [ { workflow: 'examples-calc-x.yml', label: 'examples-calc-x.stable', variants: ['stable'] }, { workflow: 'examples-spider.yml', label: 'examples-spider.stable', variants: ['stable'] }, { workflow: 'examples-apo.yml', label: 'examples-apo.stable', variants: ['stable'] }, { workflow: 'examples-unsloth.yml', label: 'examples-unsloth.stable', variants: ['stable'] }, { workflow: 'examples-tinker.yml', label: 'examples-tinker.stable', variants: ['stable'] }, { workflow: 'examples-azure.yml', label: 'examples-azure.stable', variants: ['stable'] }, { workflow: 'examples-claude-code.yml', label: 'examples-claude-code.stable', variants: ['stable'] }, { workflow: 'examples-rag.yml', label: 'examples-rag.stable', variants: ['stable'] }, { workflow: 'examples-chartqa.yml', label: 'examples-chartqa.stable', variants: ['stable'] }, ]; await badgeAggregation({ github, context, core, dependencies });