Skip to content

Commit

Permalink
Attempt to fix builds running out of disk space
Browse files Browse the repository at this point in the history
Looks like most builds on main are now running out of disk space when
`chown`ing: https://github.com/dependabot/dependabot-core/runs/2168114315

This is a quick fix to try and get builds green but we should look into
removing the need to chown files.
  • Loading branch information
feelepxyz committed Mar 22, 2021
1 parent 7c5e0c5 commit 971531d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Free up disk space
run: |
sudo apt autoremove --purge && sudo apt -y clean
docker system prune -af --volumes
sudo swapoff -a
sudo rm -f /swapfile
df -h
- name: Prepare environment variables
run: |
echo "BRANCH_REF=$(echo '${{ github.ref }}' | sed -E 's/[^A-Za-z0-9]+/-/g')" >> $GITHUB_ENV
Expand Down

0 comments on commit 971531d

Please sign in to comment.