wf test
This commit is contained in:
@@ -74,8 +74,20 @@ jobs:
|
||||
local pkg=$1
|
||||
local before_hash=$(git rev-parse HEAD)
|
||||
|
||||
# Build arguments array
|
||||
local args=("--flake" "--commit")
|
||||
|
||||
# Special handling for opencode
|
||||
if [ "$pkg" = "opencode" ]; then
|
||||
echo "ℹ️ Adding --subpackage node_modules for opencode"
|
||||
args+=("--subpackage" "node_modules")
|
||||
fi
|
||||
|
||||
# Add package name
|
||||
args+=("$pkg")
|
||||
|
||||
echo "Checking $pkg..."
|
||||
if nix-update --flake --commit "$pkg" 2>&1 | tee /tmp/update-${pkg}.log; then
|
||||
if nix-update "${args[@]}" 2>&1 | tee /tmp/update-${pkg}.log; then
|
||||
if [ "$(check_commit "$before_hash")" = "true" ]; then
|
||||
echo "✓ Updated $pkg"
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user