ci: Replaced gh cli command by curl request

gh cli does not suport object as parameters
pull/750/head
Carlos Santos 2022-10-05 10:58:13 +02:00
parent 0a2a89e375
commit 7d88c1fafb
1 changed files with 8 additions and 3 deletions

View File

@ -24,10 +24,15 @@ jobs:
- name: Send repository dispatch event
env:
GITHUB_TOKEN: ${{ secrets.OPENVIDU_DISPATCH_EVENT_GA }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message || 'Manually' }}
COMMIT_SHA: ${{ github.event.head_commit.sha || 'Manually' }}
run: |
gh api repos/OpenVidu/openvidu-call/dispatches \
-f event_type='openvidu-components-angular' \
-F client_payload={"commit-message": "${{ github.event.head_commit.message || 'Manually run' }}"}
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
https://api.github.com/repos/OpenVidu/openvidu-call/dispatches \
-d '{"event_type":"openvidu-components-angular","client_payload":{"commit-message":"'$COMMIT_MESSAGE'","commit-ref":"'$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