Skip to content

Commit 075cb7b

Browse files
committed
Added clean up of the .codeboarding files
1 parent 014ce8e commit 075cb7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,14 @@ runs:
151151
exit 1
152152
fi
153153
154-
# Create the output directories
154+
# Clean and create the output directories
155155
mkdir -p "$MD_OUTPUT_DIR"
156+
157+
# Remove existing .codeboarding files before adding new ones
158+
if [ -d "$JSON_OUTPUT_DIR" ]; then
159+
echo "Cleaning existing JSON files from $JSON_OUTPUT_DIR"
160+
rm -rf "$JSON_OUTPUT_DIR"
161+
fi
156162
mkdir -p "$JSON_OUTPUT_DIR"
157163
158164
# Initialize counters

0 commit comments

Comments
 (0)