Browse Source

add docs update workflow on PR merge to master

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
f13f0b9bf4
  1. 29
      .github/workflows/update-docs.yml

29
.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 }}"
}
Loading…
Cancel
Save