Skip to content

Commit 39c3729

Browse files
committed
ci(exclusions): fix loss of untracked list
1 parent faddcbd commit 39c3729

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/exclusions.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,18 @@ jobs:
7171
git config user.name "Paul Pfeister (automation)"
7272
git config user.email "[email protected]"
7373
74-
git add -f false_positive_exclusions.txt # -f required to override .gitignore
75-
git stash push -m "stash false positive exclusion list" -- false_positive_exclusions.txt
74+
mv false_positive_exclusions.txt false_positive_exclusions.txt.tmp
75+
76+
git add -f false_positive_exclusions.txt.tmp # -f required to override .gitignore
77+
git stash push -m "stash false positive exclusion list" -- false_positive_exclusions.txt.tmp
7678
7779
git fetch origin exclusions || true # Allows creation of branch if deleted
7880
git checkout -B exclusions origin/exclusions || (git checkout --orphan exclusions && git rm -rf .)
7981
8082
git stash pop || true
8183
84+
mv false_positive_exclusions.txt.tmp false_positive_exclusions.txt
85+
86+
git add false_positive_exclusions.txt
8287
git commit -m "auto: update exclusions list" || echo "No changes to commit"
8388
git push origin exclusions

0 commit comments

Comments
 (0)