Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Inject external webhook dispatch capsule #10

Inject external webhook dispatch capsule

Inject external webhook dispatch capsule #10

name: Reflex Grid Broadcast

Check failure on line 1 in .github/workflows/reflex-grid-broadcast.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/reflex-grid-broadcast.yaml

Invalid workflow file

(Line: 25, Col: 11): Unexpected value 'github@'', (Line: 26, Col: 1): 'name' is already defined, (Line: 28, Col: 1): 'on' is already defined, (Line: 37, Col: 1): 'jobs' is already defined
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 }}"
}'