From fa730bec78f34e0586134b4d2f880266b96f8211 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 12 Feb 2021 00:41:51 -0700 Subject: [PATCH] devops: trigger internal tests on each commit --- .github/workflows/trigger_tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger_tests.yml diff --git a/.github/workflows/trigger_tests.yml b/.github/workflows/trigger_tests.yml new file mode 100644 index 0000000000..21f454a541 --- /dev/null +++ b/.github/workflows/trigger_tests.yml @@ -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 }}