Update dependency-check.yml
This commit is contained in:
6
.github/workflows/dependency-check.yml
vendored
6
.github/workflows/dependency-check.yml
vendored
@@ -61,18 +61,12 @@ jobs:
|
||||
|
||||
# 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
|
||||
# Check if any version actually changed (old req != new req)
|
||||
if echo "$UPGRADE_OUTPUT" | tail -n +3 | awk '{if ($2 != $5 && $2 != "" && $5 != "") exit 0} END {exit 1}'; then
|
||||
echo "has_updates=true" >> $GITHUB_OUTPUT
|
||||
echo "✅ Updates detected"
|
||||
else
|
||||
echo "has_updates=false" >> $GITHUB_OUTPUT
|
||||
echo "ℹ️ No updates available"
|
||||
fi
|
||||
else
|
||||
echo "has_updates=false" >> $GITHUB_OUTPUT
|
||||
echo "ℹ️ No updates available"
|
||||
fi
|
||||
|
||||
cat Cargo.toml
|
||||
working-directory: dep-check-test
|
||||
|
||||
Reference in New Issue
Block a user