Skip to content

Commit

Permalink
Merge pull request #584 from pact-foundation/YOU54F-patch-2
Browse files Browse the repository at this point in the history
docs(ci): add trigger update to docs.pact.io
  • Loading branch information
tienvx authored Apr 26, 2024
2 parents d3d1aa7 + 7b607b3 commit d31f714
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-php-docs-updated"}'
env:
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}

0 comments on commit d31f714

Please sign in to comment.