mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
build: centralize the pinned opencode version (#1075)
Keep OpenCode version selection predictable by reading a single repo-wide constant and packaging that pin into orchestrator builds. Remove env and latest-release fallbacks so desktop, workers, snapshots, and CI stay aligned. Co-authored-by: Omar McAdam <omar@OpenWork-Studio.localdomain>
This commit is contained in:
8
.github/workflows/opencode-agents.yml
vendored
8
.github/workflows/opencode-agents.yml
vendored
@@ -20,7 +20,9 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install opencode
|
||||
run: curl -fsSL https://opencode.ai/install | bash
|
||||
run: |
|
||||
version="$(node -e "const fs=require('fs'); const parsed=JSON.parse(fs.readFileSync('constants.json','utf8')); process.stdout.write(String(parsed.opencodeVersion||'').trim().replace(/^v/,''));")"
|
||||
curl -fsSL https://opencode.ai/install | bash -s -- --version "$version" --no-modify-path
|
||||
|
||||
- name: Triage issue
|
||||
env:
|
||||
@@ -48,7 +50,9 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install opencode
|
||||
run: curl -fsSL https://opencode.ai/install | bash
|
||||
run: |
|
||||
version="$(node -e "const fs=require('fs'); const parsed=JSON.parse(fs.readFileSync('constants.json','utf8')); process.stdout.write(String(parsed.opencodeVersion||'').trim().replace(/^v/,''));")"
|
||||
curl -fsSL https://opencode.ai/install | bash -s -- --version "$version" --no-modify-path
|
||||
|
||||
- name: Build prompt
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user