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")"