We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3b03f commit ebc92cbCopy full SHA for ebc92cb
.github/workflows/deploy-trigger.yml
@@ -9,10 +9,12 @@ jobs:
9
steps:
10
- name: Trigger Workflow in Another Repository
11
run: |
12
- curl -L \
13
- -X POST \
+ # GitHub CLI api
+ # https://cli.github.com/manual/gh_api
14
+
15
+ gh api \
16
+ --method POST \
17
-H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
18
-H "X-GitHub-Api-Version: 2022-11-28" \
- https://api.github.com/repos/brownplt/pyret-drydock/dispatches \
- -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