fix(action): 修正 composite step 環境變數傳遞
This commit is contained in:
+5
-4
@@ -12,12 +12,10 @@ outputs:
|
|||||||
value: ${{ steps.antigravity.outputs.text }}
|
value: ${{ steps.antigravity.outputs.text }}
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
env:
|
|
||||||
OAUTH: ${{ secrets.ANTIGRAVITY_OAUTH }}
|
|
||||||
MODEL: ${{ vars.ANTIGRAVITY_MODEL }}
|
|
||||||
PROMPT: ${{ inputs.prompt }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: 安裝工具
|
- name: 安裝工具
|
||||||
|
env:
|
||||||
|
OAUTH: ${{ secrets.ANTIGRAVITY_OAUTH }}
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://antigravity.google/cli/install.sh | bash
|
curl -fsSL https://antigravity.google/cli/install.sh | bash
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
@@ -29,6 +27,9 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
- name: 執行工具
|
- name: 執行工具
|
||||||
id: antigravity
|
id: antigravity
|
||||||
|
env:
|
||||||
|
MODEL: ${{ vars.ANTIGRAVITY_MODEL }}
|
||||||
|
PROMPT: ${{ inputs.prompt }}
|
||||||
run: |
|
run: |
|
||||||
text="$(agy --print "$PROMPT" --model "$MODEL")"
|
text="$(agy --print "$PROMPT" --model "$MODEL")"
|
||||||
printf '%s\n' "$text"
|
printf '%s\n' "$text"
|
||||||
|
|||||||
Reference in New Issue
Block a user