Skip to content

Commit

Permalink
chore: update workflow to clear up disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Aug 6, 2024
1 parent 4e2da4a commit fcfe8b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ jobs:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0

- name: Free up disk space
run: |
initial_space=$(df / | grep / | awk '{print $4}')
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf /usr/local/share/boost
rm -rf $AGENT_TOOLSDIRECTORY
rm -rf /opt/hostedtoolcache
final_space=$(df / | grep / | awk '{print $4}')
difference=$((final_space - initial_space))
echo "Disk space difference (in KB): $difference"
- name: Set up Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
with:
Expand Down

0 comments on commit fcfe8b3

Please sign in to comment.