新增 Antigravity CLI composite action #3
+6
-6
@@ -3,14 +3,14 @@ description: 'Antigravity CLI 工具'
|
|||||||
author: 'Jeffery'
|
author: 'Jeffery'
|
||||||
inputs:
|
inputs:
|
||||||
prompt:
|
prompt:
|
||||||
description: ''
|
description: '傳給 Antigravity CLI 的提示詞'
|
||||||
required: false
|
required: false
|
||||||
default: "請自我介紹"
|
default: "請自我介紹"
|
||||||
model:
|
model:
|
||||||
description: ''
|
description: 'Antigravity CLI 使用的模型'
|
||||||
required: true
|
required: true
|
||||||
oauth:
|
oauth:
|
||||||
description: ''
|
description: 'base64 編碼的 Antigravity OAuth token 檔案內容'
|
||||||
required: true
|
required: true
|
||||||
outputs:
|
outputs:
|
||||||
text:
|
text:
|
||||||
@@ -25,9 +25,9 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
curl -fsSL https://antigravity.google/cli/install.sh | bash
|
curl -fsSL https://antigravity.google/cli/install.sh | bash
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
oauth_dir="$HOME/.gemini/antigravity-cli"
|
|
||||||
oauth_file="$oauth_dir/antigravity-oauth-token"
|
oauth_file="$HOME/.gemini/antigravity-cli/antigravity-oauth-token"
|
||||||
mkdir -p "$oauth_dir"
|
install -d -m 700 "$(dirname "$oauth_file")"
|
||||||
printf '%s' "$OAUTH" | base64 -d > "$oauth_file"
|
printf '%s' "$OAUTH" | base64 -d > "$oauth_file"
|
||||||
chmod 600 "$oauth_file"
|
chmod 600 "$oauth_file"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user