Skip to content

Commit 350cb28

Browse files
authored
ci: cleanup disk in release workflow to avoid running out of space (#1592)
Signed-off-by: Anish Ramasekar <[email protected]>
1 parent bbfe0b2 commit 350cb28

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/create-release.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@ permissions:
99

1010
jobs:
1111
create-release:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
14+
- name: Cleanup disk
15+
run: |
16+
# Cleaning up unused tools based on the suggested workaround:
17+
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
18+
19+
# Partial cleanup from the suggested workaround.
20+
# If we continue running out of space, we can remove everything listed in the workaround.
21+
sudo rm -rf /usr/share/dotnet
22+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
23+
1424
- name: Harden Runner
1525
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
1626
with:

0 commit comments

Comments
 (0)