Example
# Two workflows — main delegates deploy to a sub-workflow
main:
jobs:
build:
duration: 30
test:
duration: 20
needs:
- build
deploy:
needs:
- test
uses: deploy-workflow # double-click to drill down
deploy-workflow:
jobs:
upload:
duration: 60
Fields
| Field | Type | Description |
|---|---|---|
duration |
number |
Job duration in seconds. Optional for uses jobs —
defaults to the critical path of the sub-workflow.
|
needs |
string[] | Jobs that must complete first |
uses |
string | Delegate to another workflow defined in this file. Double-click to drill down. |
The Gantt chart is only available when every job has a duration —
either set directly, or inherited through uses.