Skip to content

Commit 81db63a

Browse files
afrittolitekton-robot
authored andcommitted
GHA label checker
Free up space on the workers before running CI as disk full is causing CI to fail and blocking PRs. Signed-off-by: Andrea Frittoli <[email protected]>
1 parent ec5d10f commit 81db63a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/e2e-matrix.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ jobs:
5353
ARTIFACTS: ${{ github.workspace }}/artifacts
5454

5555
steps:
56+
- name: Free disk space
57+
run: |
58+
echo "--- Disk space before cleanup ---"
59+
df -h
60+
sudo rm -rf /usr/share/dotnet
61+
sudo rm -rf /usr/local/lib/android
62+
sudo rm -rf /opt/ghc
63+
sudo rm -rf /opt/hostedtoolcache/CodeQL
64+
sudo docker image prune -a -f
65+
echo "--- Disk space after cleanup ---"
66+
df -h
5667
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5768
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
5869
with:

.github/workflows/labels.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Label Checker
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
14+
check_labels:
15+
name: Check kind labels
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: docker://agilepathway/pull-request-label-checker:v1.6.65
19+
with:
20+
prefix_mode: true
21+
one_of: "kind/"
22+
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)