Skip to content

Commit 304c578

Browse files
Merge pull request #148 from pact-foundation/chore/add-workflow-to-trigger-docs-update
chore: add workflow to trigger pact docs update when markdown files c…
2 parents 930a14a + 21fb2af commit 304c578

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Trigger update to docs.pact.io
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '**.md'
9+
10+
jobs:
11+
run:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Trigger docs.pact.io update workflow
15+
run: |
16+
curl -X POST https://api.github.com/repos/pact-foundation/docs.pact.io/dispatches \
17+
-H 'Accept: application/vnd.github.everest-preview+json' \
18+
-H "Authorization: Bearer $GITHUB_TOKEN" \
19+
-d '{"event_type": "pact-python-docs-updated"}'
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}

0 commit comments

Comments
 (0)