forked from pactflow/example-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1.12 KB
/
trigger_partner_docs_update.yml
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 update to partners.pactflow.io
on:
push:
branches:
- master
paths:
- '**.md'
jobs:
run:
runs-on: ubuntu-latest
if: ${{ github.repository == 'pactflow/example-consumer' }}
steps:
- name: Trigger docs.pactflow.io update workflow
run: |
curl -X POST https://api.github.com/repos/pactflow/docs.pactflow.io/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"event_type": "pactflow-example-consumer-js-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
- name: Trigger partners.pact.io update workflow
run: |
curl -X POST https://api.github.com/repos/pactflow/partners.pactflow.io/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"event_type": "pactflow-example-consumer-js-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}