Skip to content

Commit

Permalink
fix(docs): restore trigger_pact_docs_updates
Browse files Browse the repository at this point in the history
post the merge of pact-go v2 into mainline, we lost our pact-docs sync, leading to outdated information on docs.pact.io
  • Loading branch information
YOU54F authored Apr 23, 2024
1 parent 0dc378d commit 13df9cd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger_pact_docs_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger update to docs.pact.io

on:
workflow_dispatch:
push:
branches:
- master
paths:
- '**.md'

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Trigger docs.pact.io update workflow
run: |
curl -X POST https://api.github.com/repos/pact-foundation/docs.pact.io/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"event_type": "pact-go-docs-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}

0 comments on commit 13df9cd

Please sign in to comment.