From 13df9cd36aeb3189c3451a64847d8f37ebb1e086 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Tue, 23 Apr 2024 15:33:40 +0100 Subject: [PATCH] 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 --- .../workflows/trigger_pact_docs_update.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger_pact_docs_update.yml diff --git a/.github/workflows/trigger_pact_docs_update.yml b/.github/workflows/trigger_pact_docs_update.yml new file mode 100644 index 000000000..685bd46dd --- /dev/null +++ b/.github/workflows/trigger_pact_docs_update.yml @@ -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 }}