forked from github/copilot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 919 Bytes
/
Copy pathtrigger-docs-sync.yml
File metadata and controls
31 lines (27 loc) · 919 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
30
name: Trigger docs sync
# Automatically triggers the docs-internal SDK sync workflow
# whenever documentation source files change on main.
on:
push:
branches: [main]
paths:
- 'docs/**'
jobs:
notify-docs:
runs-on: ubuntu-latest
steps:
- name: Dispatch sync to docs-internal
uses: peter-evans/repository-dispatch@v3
with:
# TODO: Create a repository secret named DOCS_INTERNAL_PAT
# with a PAT that has contents:write access to github/docs-internal.
# Alternatively, use a GitHub App token for better security
# (see: actions/create-github-app-token@v1).
token: ${{ secrets.DOCS_INTERNAL_PAT }}
repository: github/docs-internal
event-type: sync-sdk-docs
client-payload: >-
{
"ref": "${{ github.sha }}",
"sender": "${{ github.actor }}"
}