Skip to content

Commit 23aa8e4

Browse files
committed
Extract to the separate job
1 parent 0f3dfa5 commit 23aa8e4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/pre-commit.yml

Lines changed: 12 additions & 6 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
@@ -20,12 +32,6 @@ jobs:
2032
with:
2133
submodules: recursive
2234
fetch-depth: 0
23-
- name: Check file sizes (max 1 MB)
24-
uses: freenet-actions/[email protected]
25-
with:
26-
max_size: 1024
27-
post_comment: false
28-
fail_on_find: true
2935
- name: Setup environment
3036
run: |
3137
python3 -m pip install -r requirements.txt --break-system-packages --ignore-installed

0 commit comments

Comments
 (0)