Compare commits
2 Commits
dc2f3b6802
...
fbeb39ec22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbeb39ec22 | ||
|
|
8ab5b4de8d |
@@ -63,7 +63,7 @@ jobs:
|
||||
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/anomalyco/opencode/releases/latest" | jq -r '.tag_name' | sed 's/^v//')
|
||||
|
||||
# Extract current version from flake.nix
|
||||
CURRENT_VERSION=$(grep -oP 'opencode\.url = "github:anomalyco/opencode/v\K[^"]+' flake.nix)
|
||||
CURRENT_VERSION=$(grep 'anomalyco/opencode' flake.nix | grep -oP 'v\K[0-9.]+')
|
||||
|
||||
echo "Current opencode version: $CURRENT_VERSION"
|
||||
echo "Latest opencode version: $LATEST_RELEASE"
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
echo "🔄 Updating opencode from $CURRENT_VERSION to $LATEST_RELEASE"
|
||||
|
||||
# Update flake.nix with new version
|
||||
sed -i 's|opencode\.url = "github:anomalyco/opencode/v.*"|opencode.url = "github:anomalyco/opencode/v'"$LATEST_RELEASE"'"|' flake.nix
|
||||
sed -i 's|url = "github:anomalyco/opencode/v.*"|url = "github:anomalyco/opencode/v'"$LATEST_RELEASE"'"|' flake.nix
|
||||
|
||||
# Update flake lock to fetch new revision
|
||||
nix flake update opencode
|
||||
|
||||
1
.sidecar-agent
Normal file
1
.sidecar-agent
Normal file
@@ -0,0 +1 @@
|
||||
opencode
|
||||
1
.sidecar-base
Normal file
1
.sidecar-base
Normal file
@@ -0,0 +1 @@
|
||||
master
|
||||
1
.sidecar-task
Normal file
1
.sidecar-task
Normal file
@@ -0,0 +1 @@
|
||||
td-84727a
|
||||
Reference in New Issue
Block a user