This repository was archived by the owner on Mar 16, 2026. It is now read-only.
Inject CI-driven badge mutation capsule #13
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: Reflex Grid Broadcast | ||
|
Check failure on line 1 in .github/workflows/reflex-grid-broadcast.yaml
|
||
| on: | ||
| issues: | ||
| types: [labeled, closed] | ||
| push: | ||
| branches: [main] | ||
| workflow_run: | ||
| workflows: ["CI"] | ||
| types: [completed] | ||
| jobs: | ||
| reflex-collapse: | ||
| if: contains(github.event.issue.labels.*.name, 'reflex-collapse') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Labels: ${{ toJson(github.event.issue.labels) }}" | ||
| echo "?? Issue Title: ${{ github.event.issue.title }}" | ||
| - name: Collapse reflex capsule | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github@' | ||
| name: Reflex Grid Broadcast | ||
| on: | ||
| issues: | ||
| types: [labeled, closed] | ||
| push: | ||
| branches: [main] | ||
| workflow_run: | ||
| workflows: ["CI"] | ||
| types: [completed] | ||
| jobs: | ||
| reflex-collapse: | ||
| if: contains(github.event.issue.labels.*.name, 'reflex-collapse') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Labels: ${{ toJson(github.event.issue.labels) }}" | ||
| echo "?? Issue Title: ${{ github.event.issue.title }}" | ||
| - name: Collapse reflex capsule | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| console.log("?? Reflex collapse triggered.") | ||
| dispatch-uce: | ||
| if: contains(github.event.issue.labels.*.name, 'dispatch-uce') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Labels: ${{ toJson(github.event.issue.labels) }}" | ||
| echo "?? Issue Title: ${{ github.event.issue.title }}" | ||
| - name: Dispatch to UCE | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| console.log("?? External dispatch to UCE triggered.") | ||
| validator-submission: | ||
| if: github.event.action == 'closed' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Issue Title: ${{ github.event.issue.title }}" | ||
| - name: Confirm validator submission | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| console.log("? Validator submission confirmed.") | ||
| grid-broadcast: | ||
| if: github.event_name == 'push' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Commit Message: ${{ github.event.head_commit.message }}" | ||
| - name: Broadcast grid update | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| console.log("?? Grid-wide broadcast triggered on push to main.") | ||
| build-log-capsule: | ||
| if: github.event_name == 'workflow_run' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo trigger metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Workflow: ${{ github.event.workflow_run.name }}" | ||
| - name: Echo build log capsule | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| console.log("?? Build log capsule echo triggered.") | ||
| external-webhook: | ||
| if: github.event_name == 'push' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Echo webhook dispatch metadata | ||
| run: | | ||
| echo "?? Trigger: ${{ github.event_name }}" | ||
| echo "?? Commit: ${{ github.event.head_commit.message }}" | ||
| - name: Dispatch to external endpoint | ||
| run: | | ||
| curl -X POST https://your-endpoint.example.com/webhook ` | ||
| -H "Content-Type: application/json" ` | ||
| -d '{ | ||
| "repo": "${{ github.repository }}", | ||
| "commit": "${{ github.event.head_commit.message }}", | ||
| "ref": "${{ github.ref }}", | ||
| "timestamp": "${{ github.event.head_commit.timestamp }}" | ||
| }' | ||