You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
973 B

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 }}"
}