docs: 修 Issue #8 列出的 P0/P1 问题 — workflow 格式、registry 引用、错误 CLI 命令

This commit is contained in:
Ubuntu
2026-07-13 16:59:55 +08:00
parent 9aac5267a3
commit 9a73f4d5c8
5 changed files with 10 additions and 11 deletions
@@ -49,21 +49,21 @@ params:
## 步骤定义(steps
```yaml
nodes:
steps:
- id: my-step # 步骤 ID,唯一
name: 我的步骤 # 步骤名称
script_id: run # 脚本标识(不是 script: run.py
script: run # 脚本标识(不是 script: run.py
params:
input: "${{inputs.input_path}}" # 双花括号语法
input: "$params.input_path}}" # 双花括号语法
```
### 常见错误
| ❌ 错误写法 | ✅ 正确写法 | 原因 |
|-----------|-----------|------|
| `script: run.py` | `script_id: run` | 执行器读的是 `script_id` |
| `script: run.py` | `script: run` | 执行器读的是 `script` |
| `params_mapping: {...}` | `params: {...}` | 字段名是 `params` |
| `$inputs.xxx` | `${{inputs.xxx}}` | 双花括号语法 |
| `$inputs.xxx` | `$params.xxx}}` | 双花括号语法 |
## 文件共享