Skip to content

Commit

Permalink
Merge pull request #16 from ywt114/main
Browse files Browse the repository at this point in the history
Fix errors related to executing dotnet
  • Loading branch information
jlumbroso authored Sep 29, 2023
2 parents 470d85a + d6bba75 commit 86fae61
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ runs:
if [[ ${{ inputs.android }} == 'true' ]]; then
BEFORE=$(getAvailableSpace)
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/android || true
AFTER=$(getAvailableSpace)
SAVED=$((AFTER-BEFORE))
Expand All @@ -146,7 +146,7 @@ runs:
BEFORE=$(getAvailableSpace)
# https://github.saobby.my.eu.orgmunity/t/bigger-github-hosted-runners-disk-space/17267/11
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/dotnet || true
AFTER=$(getAvailableSpace)
SAVED=$((AFTER-BEFORE))
Expand All @@ -158,7 +158,7 @@ runs:
if [[ ${{ inputs.haskell }} == 'true' ]]; then
BEFORE=$(getAvailableSpace)
sudo rm -rf /opt/ghc
sudo rm -rf /opt/ghc || true
AFTER=$(getAvailableSpace)
SAVED=$((AFTER-BEFORE))
Expand Down Expand Up @@ -192,7 +192,7 @@ runs:
if [[ ${{ inputs.docker-images }} == 'true' ]]; then
BEFORE=$(getAvailableSpace)
sudo docker image prune --all --force
sudo docker image prune --all --force || true
AFTER=$(getAvailableSpace)
SAVED=$((AFTER-BEFORE))
Expand All @@ -205,7 +205,7 @@ runs:
if [[ ${{ inputs.tool-cache }} == 'true' ]]; then
BEFORE=$(getAvailableSpace)
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
AFTER=$(getAvailableSpace)
SAVED=$((AFTER-BEFORE))
Expand All @@ -217,8 +217,8 @@ runs:
if [[ ${{ inputs.swap-storage }} == 'true' ]]; then
BEFORE=$(getAvailableSpace)
sudo swapoff -a
sudo rm -f /mnt/swapfile
sudo swapoff -a || true
sudo rm -f /mnt/swapfile || true
free -h
AFTER=$(getAvailableSpace)
Expand Down

0 comments on commit 86fae61

Please sign in to comment.