From 70916677de2db997bb8da479fc12c3d23115192d Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 4 Oct 2022 17:40:06 +0200 Subject: [PATCH] github: Updated dispatch event --- .../workflows/openvidu-components-angular-E2E.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/openvidu-components-angular-E2E.yml b/.github/workflows/openvidu-components-angular-E2E.yml index f514bf4d..32036368 100644 --- a/.github/workflows/openvidu-components-angular-E2E.yml +++ b/.github/workflows/openvidu-components-angular-E2E.yml @@ -15,21 +15,18 @@ jobs: openvidu_angular_e2e: name: E2E tests runs-on: ubuntu-latest - env: - OPENVIDU_DISPATCH_EVENT_GA: ${{ secrets.OPENVIDU_DISPATCH_EVENT_GA }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: '16' - name: Send repository dispatch event + env: + GITHUB_TOKEN: ${{ secrets.OPENVIDU_DISPATCH_EVENT_GA }} run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${OPENVIDU_DISPATCH_EVENT_GA}" \ - https://api.github.com/repos/OpenVidu/openvidu-call/dispatches \ - -d '{"event_type":"on-demand-e2e-test"}' + gh api repos/OpenVidu/openvidu-call/dispatches \ + --raw-field event_type=ov-components \ + --raw-field client_payload={"commit-message": "${{ github.event.head_commit.message }}"","commit-ref": "${{ github.event.head_commit.sha }}"} - name: Run Selenium Chromedriver run: docker run -d --shm-size="2g" --network host selenium/standalone-chrome:104.0 - name: Run openvidu-server-kms