wf test
This commit is contained in:
@@ -66,8 +66,6 @@ jobs:
|
||||
UPDATES_FOUND=false
|
||||
UPDATED_PACKAGES=""
|
||||
|
||||
# List of packages to IGNORE (known incompatible with nix-update)
|
||||
# These either have complex src attributes or non-standard versioning
|
||||
IGNORE_PACKAGES=(
|
||||
"hyprpaper-random"
|
||||
"launch-webapp"
|
||||
@@ -87,7 +85,7 @@ jobs:
|
||||
local pkg=$1
|
||||
local before_hash=$(git rev-parse HEAD)
|
||||
|
||||
# Check if package is ignored
|
||||
# IGNORE CHECKS
|
||||
for ignore in "${IGNORE_PACKAGES[@]}"; do
|
||||
if [ "$pkg" = "$ignore" ]; then
|
||||
echo "ℹ️ Skipping $pkg (in ignore list)"
|
||||
@@ -95,19 +93,20 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
# Build arguments array
|
||||
local args=("--flake" "--commit")
|
||||
# Base args: Flake mode, Commit changes, Use GitHub Releases API
|
||||
# --use-github-releases ensures we only get "Latest Release" (ignoring pre-releases/random tags)
|
||||
local args=("--flake" "--commit" "--use-github-releases")
|
||||
|
||||
# Special handling for opencode
|
||||
# Special configuration
|
||||
if [ "$pkg" = "opencode" ]; then
|
||||
echo "ℹ️ Adding --subpackage node_modules for opencode"
|
||||
echo "ℹ️ Config for opencode: --subpackage node_modules"
|
||||
args+=("--subpackage" "node_modules")
|
||||
fi
|
||||
|
||||
# Add package name
|
||||
args+=("$pkg")
|
||||
|
||||
echo "Checking $pkg..."
|
||||
# We allow failure (exit 0) so one package doesn't crash the whole loop
|
||||
if nix-update "${args[@]}" 2>&1 | tee /tmp/update-${pkg}.log; then
|
||||
if [ "$(check_commit "$before_hash")" = "true" ]; then
|
||||
echo "✓ Updated $pkg"
|
||||
@@ -136,7 +135,6 @@ jobs:
|
||||
|
||||
if [ -z "$PACKAGES" ]; then
|
||||
echo "No packages found to update"
|
||||
echo "has_updates=false" >> $GITHUB_OUTPUT
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -183,8 +181,6 @@ jobs:
|
||||
|
||||
echo "Checking for dirty state..."
|
||||
git status --porcelain
|
||||
|
||||
echo "Resetting any unstaged changes (e.g. dirty lockfiles) before rebase..."
|
||||
git reset --hard HEAD
|
||||
|
||||
echo "Pulling latest changes (rebase)..."
|
||||
|
||||
Reference in New Issue
Block a user