fix(action): 修正 composite step 環境變數傳遞
CI / Release Tag Version (pull_request) Successful in 4s
CI / Antigravity (pull_request) Failing after 43s

This commit is contained in:
2026-06-27 15:00:50 +00:00
parent 56452e3169
commit eead636e5f
+5 -4
View File
@@ -12,12 +12,10 @@ outputs:
value: ${{ steps.antigravity.outputs.text }}
runs:
using: 'composite'
env:
OAUTH: ${{ secrets.ANTIGRAVITY_OAUTH }}
MODEL: ${{ vars.ANTIGRAVITY_MODEL }}
PROMPT: ${{ inputs.prompt }}
steps:
- name: 安裝工具
env:
OAUTH: ${{ secrets.ANTIGRAVITY_OAUTH }}
run: |
curl -fsSL https://antigravity.google/cli/install.sh | bash
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
@@ -29,6 +27,9 @@ runs:
shell: bash
- name: 執行工具
id: antigravity
env:
MODEL: ${{ vars.ANTIGRAVITY_MODEL }}
PROMPT: ${{ inputs.prompt }}
run: |
text="$(agy --print "$PROMPT" --model "$MODEL")"
printf '%s\n' "$text"