docs(README): 更新 Antigravity action 呼叫範例
CI / Release Tag Version (pull_request) Successful in 4s
CI / Antigravity (pull_request) Successful in 26s

This commit is contained in:
2026-06-27 15:49:05 +00:00
parent 680f467c26
commit 3f81b7c8c9
+3 -4
View File
@@ -1,6 +1,6 @@
# Antigravity CLI Composite Action # 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。 此 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 中呼叫 Antigravity CLI
以下範例示範在 workflow step 中呼叫此 composite action,傳入 OAuth token、模型名稱與提示詞,並在後續步驟讀取 `text` output。 以下範例示範在 workflow step 中呼叫此 composite action,傳入 OAuth token 與提示詞,並在後續步驟讀取 `text` output。模型名稱由 action 直接讀取 `vars.ANTIGRAVITY_MODEL`
```yaml ```yaml
- name: 執行 Antigravity CLI - name: 執行 Antigravity CLI
@@ -40,7 +40,6 @@
uses: https://gitea.jsc.idv.tw/composite-actions/antigravity@v1 uses: https://gitea.jsc.idv.tw/composite-actions/antigravity@v1
with: with:
oauth: ${{ secrets.ANTIGRAVITY_OAUTH }} oauth: ${{ secrets.ANTIGRAVITY_OAUTH }}
model: ${{ vars.ANTIGRAVITY_MODEL }}
prompt: "請自我介紹" prompt: "請自我介紹"
- name: 使用輸出文字 - name: 使用輸出文字