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
|
# 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)
|
|
||||||
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 "has_updates=true" >> $GITHUB_OUTPUT
|
||||||
echo "✅ Updates detected"
|
echo "✅ Updates detected"
|
||||||
else
|
else
|
||||||
echo "has_updates=false" >> $GITHUB_OUTPUT
|
echo "has_updates=false" >> $GITHUB_OUTPUT
|
||||||
echo "ℹ️ No updates available"
|
echo "ℹ️ No updates available"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "has_updates=false" >> $GITHUB_OUTPUT
|
|
||||||
echo "ℹ️ No updates available"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat Cargo.toml
|
cat Cargo.toml
|
||||||
working-directory: dep-check-test
|
working-directory: dep-check-test
|
||||||
|
|||||||
Reference in New Issue
Block a user