From 74944095a46097c6a74f00e32849dda5954cacae Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 27 Jun 2026 15:13:54 +0000 Subject: [PATCH] =?UTF-8?q?fix(action):=20=E6=94=B9=E7=94=B1=20inputs=20?= =?UTF-8?q?=E5=82=B3=E9=81=9E=20OAuth=20=E8=88=87=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 2 ++ action.yml | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5e4695f..65ea0a2 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -25,6 +25,8 @@ jobs: id: antigravity uses: https://gitea.jsc.idv.tw/composite-actions/antigravity@v${{ needs.release-tag-version.outputs.version }} with: + oauth: ${{ secrets.ANTIGRAVITY_OAUTH }} + model: ${{ vars.ANTIGRAVITY_MODEL }} prompt: "請告訴我目前登入的Google帳號,只要電子郵件不要其他任何資訊" - name: 檢查輸出 if: ${{ steps.antigravity.outputs.text != vars.ANTIGRAVITY_EMAIL }} diff --git a/action.yml b/action.yml index b01ddcc..6f06693 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,12 @@ inputs: description: '' required: false default: "請自我介紹" + model: + description: '' + required: true + oauth: + description: '' + required: true outputs: text: description: '輸出的文字' @@ -15,7 +21,7 @@ runs: steps: - name: 安裝工具 env: - OAUTH: ${{ secrets.ANTIGRAVITY_OAUTH }} + OAUTH: ${{ inputs.oauth }} run: | curl -fsSL https://antigravity.google/cli/install.sh | bash echo "$HOME/.local/bin" >> "$GITHUB_PATH" @@ -33,7 +39,7 @@ runs: - name: 執行工具 id: antigravity env: - MODEL: ${{ vars.ANTIGRAVITY_MODEL }} + MODEL: ${{ inputs.model }} PROMPT: ${{ inputs.prompt }} run: | text="$(agy --print "$PROMPT" --model "$MODEL")"