Skip to content

Commit 04eb228

Browse files
authored
devops: add workflow triggering internal tests (microsoft#915)
1 parent 298e01e commit 04eb228

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Internal Tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release-*
8+
9+
jobs:
10+
trigger:
11+
name: "trigger"
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- run: |
15+
curl -X POST \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
-H "Authorization: token ${GH_TOKEN}" \
18+
--data "{\"event_type\": \"playwright_tests_java\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \
19+
https://api.github.com/repos/microsoft/playwright-internal/dispatches
20+
env:
21+
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)