Update dependency-check.yml
This commit is contained in:
10
.github/workflows/dependency-check.yml
vendored
10
.github/workflows/dependency-check.yml
vendored
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user