Skip to content

Commit d2da8c5

Browse files
authored
Switch large files check to pre-commit tool (#757)
1 parent ac45953 commit d2da8c5

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ 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/check-file-size@v2.0.0
17-
with:
18-
max_size: 1024
19-
post_comment: false
20-
fail_on_find: true
21-
2211
link-check:
2312
if: github.repository == 'learning-process/parallel_programming_course'
2413
runs-on: ubuntu-24.04
@@ -31,7 +20,6 @@ jobs:
3120
failIfEmpty: false
3221

3322
pre-commit:
34-
needs: check-file-sizes
3523
runs-on: ubuntu-24.04
3624
container:
3725
image: ghcr.io/learning-process/ppc-ubuntu:1.1

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ repos:
5050
- repo: https://github.com/pre-commit/pre-commit-hooks
5151
rev: v6.0.0
5252
hooks:
53+
- id: check-added-large-files
54+
args: [--maxkb=1024, --enforce-all]
5355
- id: check-json
5456
files: \.json$
5557
exclude: ^(3rdparty/|build.*/|install/)

0 commit comments

Comments
 (0)