docs: add depends_on to workflow ref

This commit is contained in:
2026-07-15 15:22:55 +00:00
parent 79fce5659c
commit 1ac3db7d50
+11
View File
@@ -48,6 +48,17 @@ steps:
| `$params.xxx` | 引用套件输入参数 | `$params.input_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 完成后才执行
```
### 常见错误
| ❌ 错误 | ✅ 正确 |