devops: fix test triggering (#5458)

This commit is contained in:
Andrey Lushnikov 2021-02-13 15:17:53 -08:00 committed by GitHub
parent ecd15e6175
commit e7b431d2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ jobs:
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "playwright_tests", "client_payload": {"foo": "${GITHUB_SHA}"}}' \
--data "{\"event_type\": \"playwright_tests\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}