Skip to content

Commit 49dd810

Browse files
authored
Merge pull request #2142 from milvus-io/optimize-build-yml
check disk space after building
2 parents 356a537 + 449d5f8 commit 49dd810

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/master_aws.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ jobs:
117117
# env:
118118
# GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
119119
# CI: true
120+
- name: Check disk space after build
121+
run: |
122+
echo "=== Disk Space Information ==="
123+
df -h
124+
echo ""
125+
echo "=== Disk Usage Summary ==="
126+
df -h --total | grep total
127+
echo ""
128+
echo "=== Available Space on Root Filesystem ==="
129+
df -h / | awk 'NR==2{printf "Total: %s, Used: %s, Available: %s, Usage: %s\n", $2, $3, $4, $5}'
120130
121131
deploy:
122132
runs-on: amazon-linux-2

.github/workflows/preview_aws.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ jobs:
120120
# GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
121121
# CI: true
122122

123+
- name: Check disk space after build
124+
run: |
125+
echo "=== Disk Space Information ==="
126+
df -h
127+
echo ""
128+
echo "=== Disk Usage Summary ==="
129+
df -h --total | grep total
130+
echo ""
131+
echo "=== Available Space on Root Filesystem ==="
132+
df -h / | awk 'NR==2{printf "Total: %s, Used: %s, Available: %s, Usage: %s\n", $2, $3, $4, $5}'
133+
123134
deploy:
124135
runs-on: amazon-linux-2
125136
needs: build

0 commit comments

Comments
 (0)