Skip to content

Commit

Permalink
chore: Free disk space before running release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 10, 2025
1 parent 71dbe35 commit 4115c04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/free-disk-space/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: free-disk-space
description: Frees disk space by deleting unused files
runs:
using: composite
steps:
- name: remove-android
shell: bash
run: sudo rm -rf /usr/local/lib/android
- name: remove-dotnet
shell: bash
run: sudo rm -rf /usr/share/dotnet
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ jobs:
permissions:
contents: read
steps:
- uses: ./.github/actions/free-disk-space
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
Expand Down Expand Up @@ -469,6 +470,7 @@ jobs:
permissions:
contents: write
steps:
- uses: ./.github/actions/free-disk-space
- name: install-build-dependencies
run: |
sudo apt-get --quiet update
Expand Down

0 comments on commit 4115c04

Please sign in to comment.