Skip to content

Commit abb5091

Browse files
committed
perf: Optimize apt installation by excluding unnecessary documentation
1 parent 81278a7 commit abb5091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ runs:
184184
BEFORE=$(getAvailableSpace)
185185
186186
sudo rm -f /var/lib/man-db/auto-update
187-
sudo dpkg-divert --local --rename --add /usr/bin/mandb && sudo ln -s /bin/true /usr/bin/mandb
188187
sudo apt-get purge -y man-db manpages manpages-dev
189188
sudo apt-get autoremove -y
190-
sudo dpkg-divert --rename --remove /usr/bin/mandb
189+
# Clean caches
190+
sudo rm -rf /var/lib/apt/lists/* /var/cache/apt/* || true
191191
192192
AFTER=$(getAvailableSpace)
193193
SAVED=$((AFTER-BEFORE))

0 commit comments

Comments
 (0)