Skip to content

Commit 7d88c1f

Browse files
committed
ci: Replaced gh cli command by curl request
gh cli does not suport object as parameters
1 parent 0a2a89e commit 7d88c1f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/openvidu-components-angular-E2E.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ jobs:
2424
- name: Send repository dispatch event
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.OPENVIDU_DISPATCH_EVENT_GA }}
27+
COMMIT_MESSAGE: ${{ github.event.head_commit.message || 'Manually' }}
28+
COMMIT_SHA: ${{ github.event.head_commit.sha || 'Manually' }}
2729
run: |
28-
gh api repos/OpenVidu/openvidu-call/dispatches \
29-
-f event_type='openvidu-components-angular' \
30-
-F client_payload={"commit-message": "${{ github.event.head_commit.message || 'Manually run' }}"}
30+
curl \
31+
-X POST \
32+
-H "Accept: application/vnd.github+json" \
33+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
34+
https://api.github.com/repos/OpenVidu/openvidu-call/dispatches \
35+
-d '{"event_type":"openvidu-components-angular","client_payload":{"commit-message":"'$COMMIT_MESSAGE'","commit-ref":"'$COMMIT_SHA'"}}'
3136
- name: Run Selenium Chromedriver
3237
run: docker run -d --shm-size="2g" --network host selenium/standalone-chrome:104.0
3338
- name: Run openvidu-server-kms

0 commit comments

Comments
 (0)