Skip to content

Commit 7c3a60b

Browse files
committed
fix(cd): resolving issue with env var
1 parent 3d8cb55 commit 7c3a60b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/deploy-trigger.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
event_type="igniteui-angular-samples-cd"
2727
branch="${{ github.ref_name }}"
2828
29-
curl -L \
30-
-X POST \
31-
-H "Accept: application/vnd.github+json" \
32-
-H "Authorization: Bearer ${{ secrets.FINE_PATKA }}" \
33-
-H "X-GitHub-Api-Version: 2022-11-28" \
34-
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
35-
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"branch\": \"$branch\", \"unit\": false, \"integration\": true}}"
29+
# Trigger repository dispatch using GitHub CLI
30+
gh api repos/$repo/dispatches \
31+
--method POST \
32+
--field event_type="$event_type" \
33+
--raw-field client_payload="{\"branch\": \"$branch\", \"unit\": false, \"integration\": true}"
34+
env:
35+
GH_TOKEN: ${{ secrets.CLASSIC_PATKA }}

0 commit comments

Comments
 (0)