Skip to content

Commit 7586c06

Browse files
Update run.sh
1 parent 98c73ee commit 7586c06

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/run.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,31 @@ if [[ "${COMPILE_TS,,}" == "$Y" ]]; then
262262
echo -e "::error::$ERROR_MESSAGE" && exit 1
263263
fi
264264
source $GITHUB_ACTION_PATH/lib/compile.sh
265-
tojs "$INPUT_PATH"
265+
tojs "$INPUT_PATH" && \
266+
DOCLEANUP=$(javascript $GITHUB_ACTION_PATH/src/check-cleanup.js "") && \
267+
if [[ "$DOCLEANUP" == 'y' ]]; then
268+
clearall "$INPUT_PATH" "ts"
269+
fi
266270
fi && \
267271
if [[ "${COMPILE_SASS,,}" == "$Y" ]]; then
268272
PREPROCESSED="y"
269273
checkForDartSass
270274
source $GITHUB_ACTION_PATH/lib/compile.sh
271-
tocss "$INPUT_PATH" "sass"
275+
tocss "$INPUT_PATH" "sass" && \
276+
DOCLEANUP=$(javascript $GITHUB_ACTION_PATH/src/check-cleanup.js "") && \
277+
if [[ "$DOCLEANUP" == 'y' ]]; then
278+
clearall "$INPUT_PATH" "sass"
279+
fi
272280
fi && \
273281
if [[ "${COMPILE_SCSS,,}" == "$Y" ]]; then
274282
PREPROCESSED="y"
275283
checkForDartSass
276284
source $GITHUB_ACTION_PATH/lib/compile.sh
277-
tocss "$INPUT_PATH" "scss"
285+
tocss "$INPUT_PATH" "scss" && \
286+
DOCLEANUP=$(javascript $GITHUB_ACTION_PATH/src/check-cleanup.js "") && \
287+
if [[ "$DOCLEANUP" == 'y' ]]; then
288+
clearall "$INPUT_PATH" "scss"
289+
fi
278290
fi && \
279291
if [[ "$PREPROCESSED" == "y" ]]; then
280292
TIME5=$(current_time_ms) && \

0 commit comments

Comments
 (0)