Skip to content

Merge pull request #12 from pactflow/deps/pact_go_v2 #5

Merge pull request #12 from pactflow/deps/pact_go_v2

Merge pull request #12 from pactflow/deps/pact_go_v2 #5

name: Trigger update to partners.pactflow.io
on:
push:
branches:
- master
paths:
- '**.md'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Trigger partners.pactflow.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-provider-golang-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
- 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-provider-golang-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}