ci: fix exclusions updater

This commit is contained in:
Paul Pfeister 2025-09-15 21:24:10 -04:00
parent 5c57b20936
commit 69d3308c71
No known key found for this signature in database
GPG Key ID: 70D33A96CBD7A994
1 changed files with 3 additions and 9 deletions

View File

@ -48,19 +48,13 @@ jobs:
if git show origin/exclusions:exclusions.txt >/dev/null 2>&1; then
# If the exclusions branch and file exist, compare
if git diff --quiet origin/exclusions -- exclusions.txt; then
echo "changed=false" >> "$GITHUB_OUTPUT"
echo "exclusions_changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
echo "exclusions_changed=true" >> "$GITHUB_OUTPUT"
fi
else
# If the exclusions branch or file do not exist, treat as changed
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
if git diff --quiet false_positive_exclusions.txt; then
echo "exclusions_changed=false" >> $GITHUB_OUTPUT
else
echo "exclusions_changed=true" >> $GITHUB_OUTPUT
echo "exclusions_changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Quantify and display results