fix(#8): 修正 script_id/inputs 语法、agc publish/list 命令

This commit is contained in:
2026-07-13 09:40:41 +00:00
parent f5348b44bb
commit 2dca7cf5a5
+7 -4
View File
@@ -33,9 +33,9 @@ params:
steps: steps:
- id: say-hello - id: say-hello
name: 输出信息 name: 输出信息
script_id: run script: run
params: params:
message: "${{inputs.message}}" message: $params.message
resolved_params: resolved_params:
- step_index: 0 - step_index: 0
@@ -82,7 +82,10 @@ curl -X POST https://suites.mercator.cn/api/v1/task \
## 第五步:发布 ## 第五步:发布
```bash ```bash
agc publish ./my-first-suite curl -X POST https://suites.mercator.cn/api/v1/publish \
-H "Authorization: Bearer mk_xxxx" \
-H "Content-Type: application/json" \
-d '{"name": "my-first-suite", "version": "1.0.0", "description": "我的第一个套件", "workflow_yaml": "...", "scripts": {"run.py": "..."}}'
``` ```
发布后套件会在市场中展示,其他用户可以搜索和使用。 发布后套件会在市场中展示,其他用户可以搜索和使用。
@@ -90,5 +93,5 @@ agc publish ./my-first-suite
## 查看已发布的套件 ## 查看已发布的套件
```bash ```bash
agc suites list curl -s https://suites.mercator.cn/api/v1/suites | jq '.[] | {name, version, description}'
``` ```