File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 45
45
run : |
46
46
git fetch origin exclusions || true
47
47
48
- if git show origin/exclusions:exclusions .txt >/dev/null 2>&1; then
48
+ if git show origin/exclusions:false_positive_exclusions .txt >/dev/null 2>&1; then
49
49
# If the exclusions branch and file exist, compare
50
- if git diff --quiet origin/exclusions -- exclusions .txt; then
50
+ if git diff --quiet origin/exclusions -- false_positive_exclusions .txt; then
51
51
echo "exclusions_changed=false" >> "$GITHUB_OUTPUT"
52
52
else
53
53
echo "exclusions_changed=true" >> "$GITHUB_OUTPUT"
@@ -71,10 +71,12 @@ jobs:
71
71
git config user.name "Paul Pfeister (automation)"
72
72
git config user.email "[email protected] "
73
73
74
+ git stash push -m "stash false positive exclusion list" --include-untracked -- false_positive_exclusions.txt
75
+
74
76
git fetch origin exclusions || true # Allows creation of branch if deleted
75
77
git checkout -B exclusions origin/exclusions || (git checkout --orphan exclusions && git rm -rf .)
76
78
77
- git add false_positive_exclusions.txt
79
+ git stash pop || true
78
80
79
81
git commit -m "auto: update exclusions list" || echo "No changes to commit"
80
82
git push origin exclusions
You can’t perform that action at this time.
0 commit comments