File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,18 @@ jobs:
71
71
git config user.name "Paul Pfeister (automation)"
72
72
git config user.email "[email protected] "
73
73
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
76
78
77
79
git fetch origin exclusions || true # Allows creation of branch if deleted
78
80
git checkout -B exclusions origin/exclusions || (git checkout --orphan exclusions && git rm -rf .)
79
81
80
82
git stash pop || true
81
83
84
+ mv false_positive_exclusions.txt.tmp false_positive_exclusions.txt
85
+
86
+ git add false_positive_exclusions.txt
82
87
git commit -m "auto: update exclusions list" || echo "No changes to commit"
83
88
git push origin exclusions
You can’t perform that action at this time.
0 commit comments