From 5457e680652c73be8b475947e5c471b58423ac56 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 27 Jun 2026 13:41:15 +0000 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=94=B9=E5=9B=9E=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E5=81=B5=E6=B8=AC=E5=B7=B2=E5=AE=89=E8=A3=9D=20AI=20?= =?UTF-8?q?=E5=8A=A9=E7=90=86=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0d925bb..8f63b1f 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -50,20 +50,17 @@ jobs: uses: https://gitea.jsc.idv.tw/docker-actions/antigravity@${{ vars.ACTION_ANTIGRAVITY_VERSION }} - name: 檢查 AI 助理 CLI shell: bash - env: - AI_ASSISTANT_CLI_TOOLS: ${{ vars.AI_ASSISTANT_CLI_TOOLS }} run: | set -e - tools="${AI_ASSISTANT_CLI_TOOLS:-codex claude opencode}" found="" - for tool in $tools; do + for tool in codex claude opencode; do if command -v "$tool" >/dev/null 2>&1; then found="${found} ${tool}" "$tool" --version || true fi done if [ -z "$found" ]; then - echo "找不到可用的 AI 助理 CLI(候選工具:${tools})" >&2 + echo "找不到可用的 AI 助理 CLI(需要 codex、claude 或 opencode 其中之一)" >&2 exit 1 fi echo "可用 AI 助理 CLI:${found}"