Spaces:
Runtime error
Runtime error
Edward Fazackerley commited on
Update sisyphus.yaml
Browse files
.github/workflows/sisyphus.yaml
CHANGED
|
@@ -79,15 +79,14 @@ jobs:
|
|
| 79 |
CONFIG_PATH=~/.config/opencode/opencode.json
|
| 80 |
PLUGIN_PATH="file://$(pwd)/node_modules/opencode-antigravity-auth"
|
| 81 |
|
| 82 |
-
# Use jq to safely add the plugin string to the array
|
| 83 |
-
# We use 'file://' prefix which OpenCode often expects for local plugins
|
| 84 |
jq --arg plugin "$PLUGIN_PATH" '
|
| 85 |
if .plugin == null then .plugin = [$plugin]
|
| 86 |
elif (.plugin | type) == "array" then .plugin += [$plugin]
|
| 87 |
else .plugin = [$plugin]
|
| 88 |
end | .plugin |= unique' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 89 |
|
| 90 |
-
# 5. Set Provider & Model
|
| 91 |
jq '.provider = "google" | .model = "antigravity-gemini-3-pro-high"' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 92 |
|
| 93 |
# 6. Inject Session
|
|
@@ -96,7 +95,6 @@ jobs:
|
|
| 96 |
- name: Collect Context
|
| 97 |
id: context
|
| 98 |
env:
|
| 99 |
-
# CRITICAL: This fixes the 'gh: set GH_TOKEN' error
|
| 100 |
GH_TOKEN: ${{ secrets.GH_PAT }}
|
| 101 |
run: |
|
| 102 |
ISSUE_NUM="${{ github.event.issue.number }}"
|
|
@@ -149,8 +147,8 @@ jobs:
|
|
| 149 |
EOF
|
| 150 |
)
|
| 151 |
|
| 152 |
-
# Execute using the local OMO build
|
| 153 |
-
stdbuf -oL -eL bun run dist/cli/index.js run "$PROMPT"
|
| 154 |
|
| 155 |
- name: Feedback (Done)
|
| 156 |
if: always()
|
|
|
|
| 79 |
CONFIG_PATH=~/.config/opencode/opencode.json
|
| 80 |
PLUGIN_PATH="file://$(pwd)/node_modules/opencode-antigravity-auth"
|
| 81 |
|
| 82 |
+
# Use jq to safely add the plugin string to the array
|
|
|
|
| 83 |
jq --arg plugin "$PLUGIN_PATH" '
|
| 84 |
if .plugin == null then .plugin = [$plugin]
|
| 85 |
elif (.plugin | type) == "array" then .plugin += [$plugin]
|
| 86 |
else .plugin = [$plugin]
|
| 87 |
end | .plugin |= unique' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 88 |
|
| 89 |
+
# 5. Set Provider & Model (This replaces the CLI flag)
|
| 90 |
jq '.provider = "google" | .model = "antigravity-gemini-3-pro-high"' "$CONFIG_PATH" > "$CONFIG_PATH.tmp" && mv "$CONFIG_PATH.tmp" "$CONFIG_PATH"
|
| 91 |
|
| 92 |
# 6. Inject Session
|
|
|
|
| 95 |
- name: Collect Context
|
| 96 |
id: context
|
| 97 |
env:
|
|
|
|
| 98 |
GH_TOKEN: ${{ secrets.GH_PAT }}
|
| 99 |
run: |
|
| 100 |
ISSUE_NUM="${{ github.event.issue.number }}"
|
|
|
|
| 147 |
EOF
|
| 148 |
)
|
| 149 |
|
| 150 |
+
# Execute using the local OMO build (Removed --model flag)
|
| 151 |
+
stdbuf -oL -eL bun run dist/cli/index.js run "$PROMPT"
|
| 152 |
|
| 153 |
- name: Feedback (Done)
|
| 154 |
if: always()
|