aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-10-12 06:24:13 +0200
committerGitHub <noreply@github.com>2023-10-12 00:24:13 -0400
commitc37f95fc56fa3fc8f51610af6915ac39839d7d19 (patch)
treea6135e50b2f818a865fc8d0bb0bafbe5965aa9af /.github
parentd020343269eaa136abd0c4893f1373560c6cf433 (diff)
downloadgitea-c37f95fc56fa3fc8f51610af6915ac39839d7d19.tar.gz
gitea-c37f95fc56fa3fc8f51610af6915ac39839d7d19.zip
Make disk clean action a bit more robust (#27590)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/disk-clean.yml15
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/disk-clean.yml b/.github/workflows/disk-clean.yml
index 0f10c905f1..78cd251354 100644
--- a/.github/workflows/disk-clean.yml
+++ b/.github/workflows/disk-clean.yml
@@ -12,14 +12,17 @@ jobs:
- name: same as 'large-packages' but without 'google-cloud-sdk'
shell: bash
run: |
- sudo apt-get remove -y '^dotnet-.*'
- sudo apt-get remove -y '^llvm-.*'
- sudo apt-get remove -y 'php.*'
- sudo apt-get remove -y '^mongodb-.*'
- sudo apt-get remove -y '^mysql-.*'
- sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
+ sudo apt-get update
+ sudo apt-get remove -y '^dotnet-.*' || true
+ sudo apt-get remove -y '^llvm-.*' || true
+ sudo apt-get remove -y 'php.*' || true
+ sudo apt-get remove -y '^mongodb-.*' || true
+ 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 clean
+ env:
+ DEBIAN_FRONTEND: noninteractive
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with: