Skip to content

Commit ebc92cb

Browse files
authored
Update deploy-trigger.yml
1 parent 6a3b03f commit ebc92cb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/deploy-trigger.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
steps:
1010
- name: Trigger Workflow in Another Repository
1111
run: |
12-
curl -L \
13-
-X POST \
12+
# GitHub CLI api
13+
# https://cli.github.com/manual/gh_api
14+
15+
gh api \
16+
--method POST \
1417
-H "Accept: application/vnd.github+json" \
15-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
1618
-H "X-GitHub-Api-Version: 2022-11-28" \
17-
https://api.github.com/repos/brownplt/pyret-drydock/dispatches \
18-
-d "{\"event_type\": \"trigger-workflow\", \"client_payload\": {\"message\": \"ahoy\"}}"
19+
/repos/brownplt/pyret-drydock/dispatches \
20+
-f 'event_type=trigger-workflow' -F "client_payload[unit]=false" -F "client_payload[integration]=true"

0 commit comments

Comments
 (0)