Update `workflow_run` event with new `in_progress` action (#31251)

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
This commit is contained in:
Jason Etcovitch 2022-10-05 20:02:19 -04:00 коммит произвёл GitHub
Родитель 4f6b418a3c
Коммит f768d3fb6d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -1363,7 +1363,7 @@ jobs:
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
| --------------------- | -------------- | ------------ | -------------|
| [`workflow_run`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#workflow_run) | - `completed`<br/>- `requested` | Last commit on default branch | Default branch |
| [`workflow_run`](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads/#workflow_run) | - `completed`<br/>- `requested`{% ifversion actions-workflow-run-in-progress %}<br/>- `in_progress`{% endif %} | Last commit on default branch | Default branch |
{% note %}

Просмотреть файл

@ -0,0 +1,7 @@
# Reference: PR#31251
# New action for the `workflow_run` webhook event that is triggered when a workflow run is `in_progress`.
versions:
fpt: '*'
ghec: '*'
ghes: '>=3.8'
ghae: '>=3.8'

Просмотреть файл

@ -1,4 +1,4 @@
Key | Type | Description
----|------|-------------
`action`|`string` | The action that was performed. Can be one of `requested` or `completed`.
`action`|`string` | The action that was performed. Can be one of `requested`{% ifversion actions-workflow-run-in-progress %}, `in_progress`,{% endif %} or `completed`.
`workflow_run`| `object` | The workflow run. Includes information such as `artifacts_url`, `check_suite_id`, `conclusion`, `head_branch`, and `head_sha`.