fix(action): 修正 composite step 環境變數傳遞
This commit is contained in:
+5
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user