From f13f0b9bf49258e4b279836fa7c428056fe3d6a2 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Thu, 15 Jan 2026 20:58:09 +1300 Subject: [PATCH] add docs update workflow on PR merge to master Co-Authored-By: Claude Opus 4.5 --- .github/workflows/update-docs.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-docs.yml diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 00000000..2977ea70 --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -0,0 +1,29 @@ +name: Update Documentation + +on: + pull_request: + types: [closed] + branches: [master] + +jobs: + update-docs: + # Only run if PR was merged (not just closed) + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + steps: + - name: Trigger docs update + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.DOCS_REPO_PAT }} + repository: shrimbly/node-banana-docs + event-type: source-pr-merged + client-payload: | + { + "pr_number": "${{ github.event.pull_request.number }}", + "pr_title": "${{ github.event.pull_request.title }}", + "pr_body": ${{ toJson(github.event.pull_request.body) }}, + "pr_url": "${{ github.event.pull_request.html_url }}", + "merged_by": "${{ github.event.pull_request.merged_by.login }}", + "head_sha": "${{ github.event.pull_request.merge_commit_sha }}" + }