Skip to content

Commit 20f83e1

Browse files
committed
chore: attempt to use a different GH trigger approach
1 parent fef63b1 commit 20f83e1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/trigger_partner_docs_update.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ on:
88
- '**.md'
99

1010
jobs:
11-
run:
11+
build:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Trigger docs.pact.io update workflow
15-
run: |
16-
curl -X POST https://api.github.com/repos/pactflow/partners.pactflow.io/dispatches \
17-
-H 'Accept: application/vnd.github.everest-preview+json' \
18-
-H "Authorization: Bearer $GITHUB_TOKEN" \
19-
-d '{"event_type": "pactflow-example-consumer-python-updated"}'
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
15+
uses: peter-evans/repository-dispatch@v1
16+
with:
17+
token: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}
18+
repository: pactflow/partners.pactflow.io
19+
event-type: pactflow-example-consumer-js-updated

0 commit comments

Comments
 (0)