Skip to content

Commit 8831c82

Browse files
committed
Fix 24.04
1 parent 6f01cb1 commit 8831c82

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Maximize build space
60-
uses: AdityaGarg8/remove-unwanted-software@v4
60+
uses: AdityaGarg8/remove-unwanted-software@v4.1
6161
with:
6262
remove-android: 'true'
6363
- name: Checkout

action.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ runs:
109109
fi
110110
fi
111111
CODENAME=$(lsb_release -c | cut -d ":" -f 2 | xargs)
112-
if [[ (${CODENAME} = focal) || (${CODENAME} = jammy) ]];then
112+
if [[ (${CODENAME} = focal) || (${CODENAME} = jammy) ]]; then
113113
POWERSHELL=powershell
114114
else
115115
POWERSHELL=powershell-lts
@@ -123,8 +123,10 @@ runs:
123123
sudo apt-get remove -y '^mongodb-.*'
124124
sudo apt-get remove -y '^mysql-.*'
125125
sudo apt-get remove -y azure-cli google-chrome-stable firefox ${POWERSHELL} mono-devel libgl1-mesa-dri --fix-missing
126-
sudo apt-get remove -y google-cloud-sdk --fix-missing
127-
sudo apt-get remove -y google-cloud-cli --fix-missing
126+
if [[ (${CODENAME} = focal) || (${CODENAME} = jammy) ]]; then
127+
sudo apt-get remove -y google-cloud-sdk --fix-missing
128+
sudo apt-get remove -y google-cloud-cli --fix-missing
129+
fi
128130
sudo apt-get autoremove -y
129131
sudo apt-get clean
130132
else
@@ -135,8 +137,10 @@ runs:
135137
sudo apt-get remove -y '^mongodb-.*' > /dev/null
136138
sudo apt-get remove -y '^mysql-.*' > /dev/null
137139
sudo apt-get remove -y azure-cli google-chrome-stable firefox ${POWERSHELL} mono-devel libgl1-mesa-dri --fix-missing > /dev/null
138-
sudo apt-get remove -y google-cloud-sdk --fix-missing > /dev/null
139-
sudo apt-get remove -y google-cloud-cli --fix-missing > /dev/null
140+
if [[ (${CODENAME} = focal) || (${CODENAME} = jammy) ]]; then
141+
sudo apt-get remove -y google-cloud-sdk --fix-missing > /dev/null
142+
sudo apt-get remove -y google-cloud-cli --fix-missing > /dev/null
143+
fi
140144
sudo apt-get autoremove -y > /dev/null
141145
sudo apt-get clean > /dev/null
142146
fi

0 commit comments

Comments
 (0)