From 9f1e35581dc14a130fe7ff8d481ecd36a8c017a1 Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Sun, 15 Nov 2026 22:47:20 -0500 Subject: [PATCH] ci(#1148): tell offband-site when the app manual changes A push to dev that touches docs/user sends an app-docs repository dispatch to offband-site, which rebuilds and publishes docs.offband.org/app/ (offband-site#77). This mirrors the firmware repo's docs-notify sender: same payload shape, PROJECT_PAT, no workflow_dispatch so a branch's copy of the file never runs with the token. The site validates the payload and builds the current dev head. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-notify.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docs-notify.yml diff --git a/.github/workflows/docs-notify.yml b/.github/workflows/docs-notify.yml new file mode 100644 index 00000000..f1f08f2a --- /dev/null +++ b/.github/workflows/docs-notify.yml @@ -0,0 +1,32 @@ +name: Notify the docs site + +# A change to the app manual on dev tells offband-site to rebuild and publish +# docs.offband.org/app/ (#1148, offband-site#77). GitHub cannot trigger a +# workflow in another repository, so this side sends a repository dispatch. The +# site validates the payload and builds the current dev head itself; the SHA is +# a notification, not a checkout. +on: + push: + branches: [dev] + paths: ['docs/user/**'] +# No workflow_dispatch: it would run a branch's own copy of this file with the +# PAT. To republish by hand, run offband-site's Documentation workflow instead. + +permissions: + contents: read + +jobs: + notify: + if: github.ref == 'refs/heads/dev' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + persist-credentials: false + - name: Send the app-docs dispatch to offband-site + env: + GH_TOKEN: ${{ secrets.PROJECT_PAT }} + SOURCE_SHA: ${{ github.sha }} + run: >- + python scripts/docs_site_dispatch.py "$SOURCE_SHA" | + gh api repos/OffbandMesh/offband-site/dispatches --method POST --input -