Skip to content

Commit c530358

Browse files
author
lushirong.77
committed
docs(actions): add workflow run status reference
1 parent c9bd77a commit c530358

3 files changed

Lines changed: 60 additions & 8 deletions

File tree

content/actions/reference/workflows-and-actions/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Workflows and actions reference
33
shortTitle: Workflows and actions
44
intro: Find information on workflows and actions in GitHub Actions.
55
versions:
6-
fpt: '*'
7-
ghes: '*'
8-
ghec: '*'
6+
fpt: "*"
7+
ghes: "*"
8+
ghec: "*"
99
children:
1010
- /workflow-syntax
1111
- /events-that-trigger-workflows
@@ -18,7 +18,7 @@ children:
1818
- /reusing-workflow-configurations
1919
- /metadata-syntax
2020
- /workflow-cancellation
21+
- /workflow-run-statuses
2122
- /dockerfile-support
2223
contentType: reference
2324
---
24-
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Workflow run statuses and conclusions
3+
shortTitle: Workflow run statuses
4+
intro: Learn how status and conclusion values describe the lifecycle and result of a workflow run.
5+
versions:
6+
fpt: "*"
7+
ghes: "*"
8+
ghec: "*"
9+
category:
10+
- Manage and monitor workflow runs
11+
contentType: reference
12+
---
13+
14+
A workflow run has a `status` while it moves through its lifecycle. When the run finishes, it has a `conclusion`.
15+
16+
The workflow run list endpoints in the REST API use the `status` query parameter for both status values and conclusion values. For more information, see [AUTOTITLE](/rest/actions/workflow-runs).
17+
18+
## Status values
19+
20+
Use `status` to understand what phase the workflow run is in.
21+
22+
| Status | Meaning | Typical use case |
23+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
24+
| `requested` | The run has been created, but it has not been added to the queue yet. This value is set only by {% data variables.product.prodname_actions %}. | The event that triggered the workflow has been accepted, and the run is about to be scheduled. |
25+
| `queued` | The run is in the queue and is waiting to be scheduled. | {% data variables.product.prodname_actions %} has not started running the workflow yet. |
26+
| `pending` | The run is blocked by concurrency limits. This value is set only by {% data variables.product.prodname_actions %}. | Another job or workflow in the same concurrency group is already in progress. |
27+
| `waiting` | The run is paused until a deployment protection rule is satisfied. This value is set only by {% data variables.product.prodname_actions %}. | A job is waiting for a required review or another environment gate. |
28+
| `in_progress` | At least one part of the run is actively executing. | A runner has started processing the workflow. |
29+
| `completed` | The run has finished. When a run reaches this state, it also has a `conclusion`. | The workflow ended with a final result. |
30+
31+
## Conclusion values
32+
33+
Use `conclusion` to understand the final result after a workflow run is `completed`.
34+
35+
| Conclusion | Meaning | Typical use case |
36+
| ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------- |
37+
| `success` | The run finished successfully. | All required work completed as expected. |
38+
| `failure` | The run finished with a failure. | A step or job reported an error. |
39+
| `neutral` | The run finished without a success or failure result. | The workflow completed, but it did not produce a pass/fail outcome. |
40+
| `cancelled` | The run stopped before it finished. | Someone canceled the run, or concurrency canceled an older run. |
41+
| `timed_out` | The run exceeded an allowed time limit. | A job or run took too long to finish. |
42+
| `action_required` | The run completed, but additional action is still needed. | A manual or external follow-up is required before work can continue. |
43+
| `skipped` | The run's work was skipped. | Conditions prevented jobs or steps from running. |
44+
| `stale` | {% data variables.product.github %} marked the run as stale. | The run stayed unresolved long enough that it was no longer treated as current. |
45+
| `startup_failure` | The run failed during startup. | Initialization failed before the run could proceed normally. |
46+
47+
## Notes
48+
49+
- `requested`, `pending`, and `waiting` are set only by {% data variables.product.prodname_actions %}.
50+
- `pending` commonly appears when you use [AUTOTITLE](/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency).
51+
- `waiting` commonly appears when a job is blocked by [AUTOTITLE](/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments) or other deployment protection rules.
52+
- `startup_failure` can appear as a workflow run conclusion in webhook payloads, even though it is not an accepted `status` filter value for the REST API list endpoints.

content/rest/actions/workflow-runs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ intro: >-
66
Use the REST API to interact with workflow runs in {% data
77
variables.product.prodname_actions %}.
88
versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖
9-
fpt: '*'
10-
ghec: '*'
11-
ghes: '*'
9+
fpt: "*"
10+
ghec: "*"
11+
ghes: "*"
1212
autogenerated: rest
1313
category:
1414
- Automate CI/CD workflows
1515
---
1616

1717
## About workflow runs in {% data variables.product.prodname_actions %}
1818

19-
You can use the REST API to view, re-run, cancel, and view logs for workflow runs in {% data variables.product.prodname_actions %}. {% data reusables.actions.about-workflow-runs %} For more information, see [AUTOTITLE](/actions/managing-workflow-runs).
19+
You can use the REST API to view, re-run, cancel, and view logs for workflow runs in {% data variables.product.prodname_actions %}. {% data reusables.actions.about-workflow-runs %} For reference information about `status` and `conclusion` values, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-run-statuses). For more information, see [AUTOTITLE](/actions/managing-workflow-runs).
2020

2121
<!-- Content after this section is automatically generated -->

0 commit comments

Comments
 (0)