mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 14:13:52 +03:00
Make disk clean action a bit more robust (#27590)
This commit is contained in:
parent
d020343269
commit
c37f95fc56
1 changed files with 9 additions and 6 deletions
15
.github/workflows/disk-clean.yml
vendored
15
.github/workflows/disk-clean.yml
vendored
|
@ -12,14 +12,17 @@ jobs:
|
||||||
- name: same as 'large-packages' but without 'google-cloud-sdk'
|
- name: same as 'large-packages' but without 'google-cloud-sdk'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get remove -y '^dotnet-.*'
|
sudo apt-get update
|
||||||
sudo apt-get remove -y '^llvm-.*'
|
sudo apt-get remove -y '^dotnet-.*' || true
|
||||||
sudo apt-get remove -y 'php.*'
|
sudo apt-get remove -y '^llvm-.*' || true
|
||||||
sudo apt-get remove -y '^mongodb-.*'
|
sudo apt-get remove -y 'php.*' || true
|
||||||
sudo apt-get remove -y '^mysql-.*'
|
sudo apt-get remove -y '^mongodb-.*' || true
|
||||||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
|
sudo apt-get remove -y '^mysql-.*' || true
|
||||||
|
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri || true
|
||||||
sudo apt-get autoremove -y
|
sudo apt-get autoremove -y
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
- name: Free Disk Space (Ubuntu)
|
- name: Free Disk Space (Ubuntu)
|
||||||
uses: jlumbroso/free-disk-space@main
|
uses: jlumbroso/free-disk-space@main
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue