From 0dc9b0b3d6ea32a14147bc171f582d93c73b02da Mon Sep 17 00:00:00 2001 From: Alex Shnitman Date: Fri, 17 Jul 2026 15:39:31 +0300 Subject: [PATCH] ci: enforce the 25k Docker Hub limit on README.md Runs only when README.md changes (which the build workflow ignores), so the limit is checked exactly when it can be exceeded. Co-Authored-By: Claude Fable 5 --- .github/workflows/readme-size.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/readme-size.yml diff --git a/.github/workflows/readme-size.yml b/.github/workflows/readme-size.yml new file mode 100644 index 0000000..4ea12b4 --- /dev/null +++ b/.github/workflows/readme-size.yml @@ -0,0 +1,21 @@ +name: readme-size + +on: + push: + paths: + - 'README.md' + pull_request: + paths: + - 'README.md' + +jobs: + check-size: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Check README stays under Docker Hub's 25k character limit + run: | + size=$(wc -c < README.md) + echo "README.md is ${size} bytes (limit 25000)" + test "$size" -lt 25000