Update dependency-check.yml

This commit is contained in:
fa-sharp
2026-02-20 01:14:20 -05:00
parent 2aa5f9f10c
commit 7de4a9a86a

View File

@@ -61,14 +61,8 @@ jobs:
# Check if any dependencies were actually upgraded # Check if any dependencies were actually upgraded
if echo "$UPGRADE_OUTPUT" | grep -E "name\s+old req\s+compatible\s+latest\s+new req" > /dev/null; then if echo "$UPGRADE_OUTPUT" | grep -E "name\s+old req\s+compatible\s+latest\s+new req" > /dev/null; then
# Check if any version actually changed (old req != new req) echo "has_updates=true" >> $GITHUB_OUTPUT
if echo "$UPGRADE_OUTPUT" | tail -n +3 | awk '{if ($2 != $5 && $2 != "" && $5 != "") exit 0} END {exit 1}'; then echo "✅ Updates detected"
echo "has_updates=true" >> $GITHUB_OUTPUT
echo "✅ Updates detected"
else
echo "has_updates=false" >> $GITHUB_OUTPUT
echo " No updates available"
fi
else else
echo "has_updates=false" >> $GITHUB_OUTPUT echo "has_updates=false" >> $GITHUB_OUTPUT
echo " No updates available" echo " No updates available"