mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-09 18:52:24 +08:00
1. 将 action.yml 从 actions/ 目录移至根目录,统一 Actions 入口 2. 更新 action.yml 中 main 路径为 actions/dist/index.js 3. 修正所有工作流文件中的 uses 路径从 ./actions 改为 ./ 4. 更新文档中的 Actions 引用路径从 nicepkg/spaceflow/actions 改为 Lydanne/spaceflow 5. 为 review-summary 命令的 preset、since、until 选项添加短标志 -p、-s、-u
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: "Spaceflow"
|
|
description: "Run spaceflow CLI commands in CI workflows"
|
|
author: "spaceflow"
|
|
|
|
inputs:
|
|
command:
|
|
description: "The spaceflow command to run (e.g. review, publish, scripts, shell, or get-output for extracting cached values)"
|
|
required: true
|
|
args:
|
|
description: "Additional arguments to pass to the command"
|
|
required: false
|
|
default: ""
|
|
from-comment:
|
|
description: "Parse command from PR comment (e.g. '/review -v 2 -l openai')"
|
|
required: false
|
|
default: ""
|
|
provider-url:
|
|
description: "Git Provider server URL (e.g. https://api.github.com)"
|
|
required: false
|
|
provider-token:
|
|
description: "Git Provider API token"
|
|
required: false
|
|
working-directory:
|
|
description: "Working directory for the command"
|
|
required: false
|
|
default: "."
|
|
dev-mode:
|
|
description: "Enable development mode (install deps and use nest to run)"
|
|
required: false
|
|
default: "false"
|
|
event-action:
|
|
description: "PR event action (opened, synchronize, closed, etc.)"
|
|
required: false
|
|
default: ""
|
|
|
|
outputs:
|
|
result:
|
|
description: "JSON string of all command outputs"
|
|
value:
|
|
description: "Extracted value from JSON (for get-output command)"
|
|
|
|
runs:
|
|
using: "node20"
|
|
main: "actions/dist/index.js"
|
|
|
|
branding:
|
|
icon: "git-pull-request"
|
|
color: "green"
|