Merge branch 'bugfix-opencode-flake-input'

This commit is contained in:
sascha.koenig
2026-02-13 06:51:03 +01:00
5 changed files with 6 additions and 2 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
opencode

1
.sidecar-base Normal file
View File

@@ -0,0 +1 @@
master

1
.sidecar-task Normal file
View File

@@ -0,0 +1 @@
td-84727a

1
.td-root Normal file
View File

@@ -0,0 +1 @@
/home/sascha.koenig/p/NIX/nixpkgs