Skip to content

Commit ace15ab

Browse files
author
Michael Kaiser
committed
clean cdk.out after success
1 parent da6ce97 commit ace15ab

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-pull-request.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,17 @@ jobs:
126126
# Check the exit status of parallel
127127
parallel_exit=$?
128128
129-
# If parallel succeeded, clean up node_modules to save space
129+
# If parallel succeeded, clean up node_modules and cdk.out to save space
130130
if [ $parallel_exit -eq 0 ]; then
131-
echo "::group::Cleaning up node_modules"
131+
echo "::group::Cleaning up build artifacts"
132132
# Find all node_modules directories within the language directory and remove them
133+
echo "Removing node_modules directories..."
133134
find ./ -name "node_modules" -type d -prune -exec rm -rf {} \; 2>/dev/null || true
135+
136+
# Find all cdk.out directories within the language directory and remove them
137+
echo "Removing cdk.out directories..."
138+
find ./ -name "cdk.out" -type d -prune -exec rm -rf {} \; 2>/dev/null || true
139+
134140
echo "Cleanup completed"
135141
echo "::endgroup::"
136142
fi

0 commit comments

Comments
 (0)