Skip to content

Commit 426a510

Browse files
authored
[CI] Add file size check GHA workflow (#694)
close #688
1 parent c7feed5 commit 426a510

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ permissions:
88
packages: read
99

1010
jobs:
11+
check-file-sizes:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v6
15+
- name: Check file sizes (max 1 MB)
16+
uses: freenet-actions/[email protected]
17+
with:
18+
max_size: 1024
19+
post_comment: false
20+
fail_on_find: true
21+
1122
pre-commit:
23+
needs: check-file-sizes
1224
runs-on: ubuntu-24.04
1325
container:
1426
image: ghcr.io/learning-process/ppc-ubuntu:1.1

0 commit comments

Comments
 (0)