Skip to content

Commit 13df9cd

Browse files
authored
fix(docs): restore trigger_pact_docs_updates
post the merge of pact-go v2 into mainline, we lost our pact-docs sync, leading to outdated information on docs.pact.io
1 parent 0dc378d commit 13df9cd

File tree

1 file changed

+22
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)