forked from shrimbly/node-banana
-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (26 loc) · 973 Bytes
/
update-docs.yml
File metadata and controls
29 lines (26 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 }}"
}