name: Badge - Claude Code on: workflow_run: workflows: - Examples - Claude Code 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-claude-code.yml', label: 'claude-code', variants: ['stable'] }, ]; await badgeAggregation({ github, context, core, dependencies });