From c58b46ac83317630c718d09aeda1ed636bd04121 Mon Sep 17 00:00:00 2001 From: Renato Date: Fri, 21 Aug 2026 09:35:11 +0200 Subject: [PATCH] fix: use supported Cloudflare Pages pagination --- .github/workflows/commons-release.yml | 2 +- tests/commons/test_release_workflow.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/commons-release.yml b/.github/workflows/commons-release.yml index e94b725..6843761 100644 --- a/.github/workflows/commons-release.yml +++ b/.github/workflows/commons-release.yml @@ -89,7 +89,7 @@ jobs: curl --fail --silent --show-error --proto '=https' --tlsv1.2 \ --connect-timeout 10 --max-time 30 --max-filesize 1048576 \ --header "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \ - "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/pages/projects/marginal-commons/deployments?env=production&per_page=100&page=${deployment_page}" \ + "https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/pages/projects/marginal-commons/deployments?env=production&per_page=25&page=${deployment_page}" \ --output current/deployments.json total_pages="$(DEPLOYMENT_PAGE="${deployment_page}" python - <<'PY' import json diff --git a/tests/commons/test_release_workflow.py b/tests/commons/test_release_workflow.py index 7847038..8544a6e 100644 --- a/tests/commons/test_release_workflow.py +++ b/tests/commons/test_release_workflow.py @@ -99,5 +99,7 @@ def test_unsigned_bootstrap_checks_all_production_deployment_pages() -> None: ) command = compare["run"] assert "page=${deployment_page}" in command + assert "per_page=25" in command + assert "per_page=100" not in command assert "total_pages" in command assert "deployment_page=$((deployment_page + 1))" in command