docs: add depends_on to workflow ref
This commit is contained in:
@@ -48,6 +48,17 @@ steps:
|
|||||||
| `$params.xxx` | 引用套件输入参数 | `$params.input_path` |
|
| `$params.xxx` | 引用套件输入参数 | `$params.input_path` |
|
||||||
| `$steps.step_id.output_name` | 引用前一步骤输出 | `$steps.step1.result_path` |
|
| `$steps.step_id.output_name` | 引用前一步骤输出 | `$steps.step1.result_path` |
|
||||||
|
|
||||||
|
### 步骤依赖
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- id: step1
|
||||||
|
script_id: analyze
|
||||||
|
- id: step2
|
||||||
|
script_id: report
|
||||||
|
depends_on: [step1] # step2 等 step1 完成后才执行
|
||||||
|
```
|
||||||
|
|
||||||
### 常见错误
|
### 常见错误
|
||||||
|
|
||||||
| ❌ 错误 | ✅ 正确 |
|
| ❌ 错误 | ✅ 正确 |
|
||||||
|
|||||||
Reference in New Issue
Block a user