Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Navoichyk committed Mar 18, 2021
1 parent ae59d8b commit 4cd90b5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-space.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Clean up disk'
on:
pull_request:
branches: [dev-cere]
types: [opened, synchronize, edited]
jobs:
clean-up-disk:
runs-on: 'ubuntu-18.04'
steps:
- uses: actions/checkout@v2
- name: 'Checkout submodules'
run: 'git submodule update --init --recursive'
- name: 'current directory'
run: pwd
- name: 'disks space'
run: df -h
- name: 'current disk space'
run: df -Ph . | tail -1 | awk '{print $4}'
- name: 'top folders'
run: du -sh * /home/* | sort -hr | head -n10
- name: 'clean up 1'
run: sudo rm -rf "/usr/local/share/boost"
- name: 'current disk space 1'
run: df -Ph . | tail -1 | awk '{print $4}'
- name: 'clean up 2'
run: sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: 'current disk space 2'
run: df -Ph . | tail -1 | awk '{print $4}'
- name: 'docker version'
run: docker --version

0 comments on commit 4cd90b5

Please sign in to comment.