Skip to content

Commit 2dee193

Browse files
authored
docs(ci): add docs trigger
1 parent 06c78c9 commit 2dee193

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.pactflow.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.pactflow.io update workflow
15+
run: |
16+
curl -X POST https://api.github.com/repos/pactflow/docs.pactflow.io/dispatches \
17+
-H 'Accept: application/vnd.github.everest-preview+json' \
18+
-H "Authorization: Bearer $GITHUB_TOKEN" \
19+
-d '{"event_type": "pactflow-example-consumer-java-graphql-updated"}'
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}

0 commit comments

Comments
 (0)