ci(package_updates.yml): always clean up for spaces (#17810)

As more packages get enabled for auto update, there is a need for more
spaces for CI to complete.
This commit is contained in:
Jia Yuan Lo 2023-09-22 13:19:30 +08:00 committed by GitHub
parent 954b0bf852
commit 6fed5dfc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.TERMUXBOT2_TOKEN }}
- name: Free additional disk space
run: |
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|php)') \
firefox google-chrome-stable microsoft-edge-stable mono-runtime-common monodoc-manual ruby
sudo apt autoremove -yq
sudo rm -fr /opt/hostedtoolcache /usr/local /usr/share/dotnet /usr/share/swift
- name: Process package updates
env:
GITHUB_TOKEN: ${{ secrets.TERMUXBOT2_TOKEN }}