feat(antigravity): 改由 repository variable 讀取模型設定 #5

Merged
admin merged 3 commits from develop into master 2026-06-27 15:53:45 +00:00
Showing only changes of commit 3f81b7c8c9 - Show all commits
+3 -4
View File
@@ -1,6 +1,6 @@
# Antigravity CLI Composite Action
更新時間:2026/06/27 23:24:37
更新時間:2026/06/27 23:35:00
此 repository 提供一個 Gitea/GitHub Actions composite action,用於安裝 Antigravity CLI、寫入 OAuth token、執行指定提示詞,並將 CLI 輸出寫入 action output。
@@ -10,7 +10,7 @@
| 專案名稱 | 專案描述 |
| --- | --- |
| [antigravity](https://gitea.jsc.idv.tw/composite-actions/antigravity/src/branch/ai-review-resolve/develop-20260627-142726) | 提供 Antigravity CLI composite action,讓 workflow 可透過 `oauth``model``prompt` 輸入執行 CLI取得文字輸出。 |
| [antigravity](https://gitea.jsc.idv.tw/composite-actions/antigravity/src/branch/ai-review-resolve/develop-20260627-142726) | 提供 Antigravity CLI composite action,讓 workflow 可透過 `oauth``prompt` 輸入執行 CLI,並從 repository variable 讀取模型名稱後取得文字輸出。 |
### 參考專案
@@ -32,7 +32,7 @@
### 在 workflow 中呼叫 Antigravity CLI
以下範例示範在 workflow step 中呼叫此 composite action,傳入 OAuth token、模型名稱與提示詞,並在後續步驟讀取 `text` output。
以下範例示範在 workflow step 中呼叫此 composite action,傳入 OAuth token 與提示詞,並在後續步驟讀取 `text` output。模型名稱由 action 直接讀取 `vars.ANTIGRAVITY_MODEL`
```yaml
- name: 執行 Antigravity CLI
@@ -40,7 +40,6 @@
uses: https://gitea.jsc.idv.tw/composite-actions/antigravity@v1
with:
oauth: ${{ secrets.ANTIGRAVITY_OAUTH }}
model: ${{ vars.ANTIGRAVITY_MODEL }}
prompt: "請自我介紹"
- name: 使用輸出文字