File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 94
94
# Find and delete unneeded coverage directories:
95
95
- name : ' Find and delete unneeded coverage directories'
96
96
run : |
97
- echo "Current working directory: $(pwd)"
98
- echo "Listing top-level directories:"
99
- ls -la
97
+ WORKING_DIR=$(pwd)
98
+ echo "Current working directory: $WORKING_DIR"
100
99
101
100
# Find all coverage directories:
102
101
find . \
@@ -131,12 +130,12 @@ jobs:
131
130
if [ -z "$dir" ]; then
132
131
continue
133
132
fi
134
- if [ -d "$ dir" ]; then
135
- rm -r -- "$dir"
136
- elif [ -d "./$dir" ]; then
137
- rm -r -- "./$dir "
133
+ full_path="$WORKING_DIR/$ dir"
134
+ if [ -d "$full_path" ]; then
135
+ echo "Removing directory: $full_path"
136
+ rm -r -- "$full_path "
138
137
else
139
- echo "Warning: Directory not found: $dir "
138
+ echo "Warning: Directory not found: $full_path "
140
139
fi
141
140
done < dirs_to_remove.txt
142
141
You can’t perform that action at this time.
0 commit comments