ci(exclusions): fix loss of untracked list

This commit is contained in:
Paul Pfeister 2025-09-17 14:09:15 -04:00
parent faddcbd15f
commit 39c3729524
No known key found for this signature in database
GPG Key ID: 70D33A96CBD7A994
1 changed files with 7 additions and 2 deletions

View File

@ -71,13 +71,18 @@ jobs:
git config user.name "Paul Pfeister (automation)"
git config user.email "code@pfeister.dev"
git add -f false_positive_exclusions.txt # -f required to override .gitignore
git stash push -m "stash false positive exclusion list" -- false_positive_exclusions.txt
mv false_positive_exclusions.txt false_positive_exclusions.txt.tmp
git add -f false_positive_exclusions.txt.tmp # -f required to override .gitignore
git stash push -m "stash false positive exclusion list" -- false_positive_exclusions.txt.tmp
git fetch origin exclusions || true # Allows creation of branch if deleted
git checkout -B exclusions origin/exclusions || (git checkout --orphan exclusions && git rm -rf .)
git stash pop || true
mv false_positive_exclusions.txt.tmp false_positive_exclusions.txt
git add false_positive_exclusions.txt
git commit -m "auto: update exclusions list" || echo "No changes to commit"
git push origin exclusions