| 1 | # Sovereign twist: this repo's canonical origin is a valley host; GitHub is a |
| 2 | # push mirror. This workflow runs when the MIRROR receives the replicated push |
| 3 | # (deploy-key pushes do trigger Actions), making GitHub a notification relay |
| 4 | # for GitHub-side consumers. Interim scaffolding: the valley-native replacement |
| 5 | # is the Phase 4/5 reactive controller subscribing to integration events |
| 6 | # (design/roadmap.md). |
| 7 | |
| 8 | name: Notify Cosmo |
| 9 | |
| 10 | on: |
| 11 | push: |
| 12 | branches: [main] |
| 13 | |
| 14 | permissions: {} |
| 15 | |
| 16 | jobs: |
| 17 | notify: |
| 18 | runs-on: ubuntu-latest |
| 19 | permissions: {} |
| 20 | steps: |
| 21 | - name: Dispatch to cosmo |
| 22 | uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0 |
| 23 | with: |
| 24 | token: ${{ secrets.COSMO_DISPATCH_TOKEN }} |
| 25 | repository: patflynn/cosmo |
| 26 | event-type: the-valley-updated |