workflow_id
with the workflow file name. For example, you could use main.yaml
.workflow_dispatch
webhook event occurs. The inputs
are configured in the workflow file. For more information about how to configure the workflow_dispatch
event in the workflow file, see "Events that trigger workflows."repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint. For more information, see "Creating a personal access token for the command line."curl --location --request POST 'https://api.github.com/repos///actions/workflows//dispatches' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": {
"home": "San Francisco, CA",
"name": "Mona the Octocat"
},
"ref": "topic-branch"
}'
{}
Authorization: Bearer ********************
inputs
are omitted.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通