Skip to content

Commit 23caa6d

Browse files
committed
Remove /usr/local/lib/android and /usr/share/dotnet to make space since we aren't building for either.
Add action to manually delete old workflows
1 parent a53105d commit 23caa6d

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/build_push.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
branches:
99
- '*'
10+
workflow_dispatch:
1011

1112
jobs:
1213
ShellCheck:
@@ -21,6 +22,10 @@ jobs:
2122
runs-on: ubuntu-latest
2223
needs: ShellCheck
2324
steps:
25+
- name: Make Space
26+
run: |
27+
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
28+
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
2429
- name: Checkout
2530
if: success()
2631
id: checkout

.github/workflows/delete_old.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Delete old workflow runs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
days:
6+
description: 'Number of days.'
7+
required: true
8+
default: 90
9+
10+
jobs:
11+
del_runs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Delete workflow runs
15+
uses: Mattraks/delete-workflow-runs@main
16+
with:
17+
token: ${{ secrets.AUTH_PAT }}
18+
repository: ${{ github.repository }}
19+
retain_days: ${{ github.event.inputs.days }}

0 commit comments

Comments
 (0)