From eead636e5f3ca65a8f900160abed6deefd8f1f96 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 27 Jun 2026 15:00:50 +0000 Subject: [PATCH] =?UTF-8?q?fix(action):=20=E4=BF=AE=E6=AD=A3=20composite?= =?UTF-8?q?=20step=20=E7=92=B0=E5=A2=83=E8=AE=8A=E6=95=B8=E5=82=B3?= =?UTF-8?q?=E9=81=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 4c7cdf8..9002431 100644 --- a/action.yml +++ b/action.yml @@ -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"