From f216aed4f715393ee758dc3a4d620d144ae4f3e2 Mon Sep 17 00:00:00 2001 From: Sean Mann Date: Mon, 4 May 2026 21:53:20 -0700 Subject: [PATCH 1/2] Trigger HELPERBOT brain update after Pages deploy Adds a notify job that runs after the github-pages deploy succeeds and sends a repository_dispatch event to comcode-org/discord with type wiki-updated. The discord repo's "Update HELPERBOT brain" workflow listens for that event, rebuilds the wiki and pushes a fresh flattened brain to the HELPERBOT OpenAI assistant. Uses peter-evans/repository-dispatch pinned to v4.0.1 (28959ce8df70de7be546dd1250a005dd32156697). Authenticates with a fine-grained PAT stored as DISCORD_DISPATCH_TOKEN secret on this repo, scoped to actions:write on comcode-org/discord only. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/push-deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/push-deploy.yml b/.github/workflows/push-deploy.yml index ee48df9b..642f7e87 100644 --- a/.github/workflows/push-deploy.yml +++ b/.github/workflows/push-deploy.yml @@ -60,3 +60,15 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + notify: + name: Trigger wiki update notification + runs-on: ubuntu-latest + needs: deploy + steps: + - name: Trigger wiki update notification + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 + with: + token: ${{ secrets.DISCORD_DISPATCH_TOKEN }} + repository: comcode-org/discord + event-type: wiki-updated From 76036aef6b563d24fd2491df4a14a667b00804d8 Mon Sep 17 00:00:00 2001 From: Sean Mann Date: Mon, 4 May 2026 21:56:42 -0700 Subject: [PATCH 2/2] lint: prettier fix on push-deploy.yml Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/push-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-deploy.yml b/.github/workflows/push-deploy.yml index 642f7e87..3679e370 100644 --- a/.github/workflows/push-deploy.yml +++ b/.github/workflows/push-deploy.yml @@ -67,7 +67,7 @@ jobs: needs: deploy steps: - name: Trigger wiki update notification - uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.DISCORD_DISPATCH_TOKEN }} repository: comcode-org/discord