Skip to content

Commit

Permalink
devops: trigger internal tests on each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Feb 12, 2021
1 parent 5ea6d6e commit fa730be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Internal Tests"

on:
push:
branches:
- master
- release-*

jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "playwright_tests", "client_payload": {"foo": "${GH_REF}"}}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
GH_REF: ${{ github.ref }}

0 comments on commit fa730be

Please sign in to comment.