Mirrowel commited on
Commit
a97ced5
·
1 Parent(s): 3bd5c22

ci: update opencode workflow configuration

Browse files

- Enable autoupdate in the opencode config for automatic updates.
- Add a step to install Python dependencies from requirements.txt.
- Enable sharing in the opencode action(for now).

Files changed (1) hide show
  1. .github/workflows/opencode.yml +9 -6
.github/workflows/opencode.yml CHANGED
@@ -1,10 +1,6 @@
1
  name: opencode
2
 
3
  on:
4
- issues:
5
- types: [opened, edited, labeled, assigned]
6
- pull_request:
7
- types: [opened, synchronize, reopened, review_requested]
8
  issue_comment:
9
  types: [created]
10
 
@@ -50,13 +46,20 @@ jobs:
50
  }
51
  }
52
  },
53
- "model": "gemini/gemini-2.5-pro"
 
54
  }'
55
  echo "$CONFIG" > ~/.config/opencode/opencode.json
56
 
 
 
 
 
 
57
  - name: Run opencode
58
  uses: sst/opencode/github@latest
59
  env:
60
  OPENCODE_API_KEY: ${{ secrets.PROXY_API_KEY }}
61
  with:
62
- model: llm-proxy/gemini/gemini-2.5-pro
 
 
1
  name: opencode
2
 
3
  on:
 
 
 
 
4
  issue_comment:
5
  types: [created]
6
 
 
46
  }
47
  }
48
  },
49
+ "model": "gemini/gemini-2.5-pro",
50
+ "autoupdate": true
51
  }'
52
  echo "$CONFIG" > ~/.config/opencode/opencode.json
53
 
54
+
55
+ - name: Install dependencies
56
+ run: |
57
+ python -m pip install --upgrade pip
58
+ pip install -r requirements.txt
59
  - name: Run opencode
60
  uses: sst/opencode/github@latest
61
  env:
62
  OPENCODE_API_KEY: ${{ secrets.PROXY_API_KEY }}
63
  with:
64
+ model: llm-proxy/gemini/gemini-2.5-pro
65
+ share: true