workflow_id
with the workflow file name. For example, you could use main.yaml
. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.curl --location --request GET 'https://api.github.com/repos///actions/workflows/'
{
"badge_url": "https://github.com/actions/setup-ruby/workflows/CI/badge.svg",
"created_at": "2019-12-06T14:20:20.000Z",
"deleted_at": "2019-12-06T14:20:20.000Z",
"html_url": "https://github.com/actions/setup-ruby/blob/master/.github/workflows/ruby.yaml",
"id": 5,
"name": "CI",
"node_id": "MDg6V29ya2Zsb3cxMg==",
"path": "ruby.yaml",
"state": "active",
"updated_at": "2019-12-06T14:20:20.000Z",
"url": "https://api.github.com/repos/actions/setup-ruby/workflows/5"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通