diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 83a16e2..59c75d4 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -59,10 +59,6 @@ on: schedule: # 06:20 UTC. Off the hour, because everything else in the world runs on # it and a queued runner adds nothing but latency. - - cron: "20 6 * * *" - # Mondays: the same jobs, WITH the paid secrets (proxy, Scraping Browser, - # captcha key). On the daily run above those secrets read as empty, so - # it takes the free no-secret route and bills nothing. - cron: "20 6 * * 1" workflow_dispatch: @@ -76,7 +72,7 @@ jobs: env: # `secrets` is not available in a job-level `if`, so presence is tested # through the job env and read in each step's condition. - HAVE_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY != '' }} + HAVE_PROXY: ${{ secrets.QUORA_PROXY != '' }} steps: - uses: actions/checkout@v4 @@ -107,7 +103,7 @@ jobs: # stops the step from failing the job; it does not touch errexit. continue-on-error: true env: - QUORA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY || '' }} + QUORA_PROXY: ${{ secrets.QUORA_PROXY }} run: | set +e xvfb-run -a python3 playwright_scraper.py \ @@ -351,7 +347,7 @@ jobs: if: ${{ !cancelled() }} continue-on-error: true env: - QUORA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.QUORA_PROXY || '' }} + QUORA_PROXY: ${{ secrets.QUORA_PROXY }} run: | set +e xvfb-run -a python3 playwright_scraper.py \ diff --git a/CHANGELOG.md b/CHANGELOG.md index 437126f..0b8541d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,9 +14,7 @@ bad default or violating the promise quietly. ### Changed -- CI only: the canary's optional paid secret `QUORA_PROXY` now reaches it only on a new weekly - run (Mondays 06:20 UTC) and on a manual dispatch. The daily run keeps its - schedule and takes the free route without them, so it bills nothing. +- CI only: the canary now runs weekly (Mondays 06:20 UTC) and on a manual dispatch, with its optional secret `QUORA_PROXY` passed on every run; the daily schedule is removed. ## [0.2.0] — 2026-10-16 diff --git a/README.md b/README.md index e7b0548..e49ebc5 100644 --- a/README.md +++ b/README.md @@ -444,7 +444,7 @@ Author names, profile slugs, credentials, answer bodies and cited links are replaced with placeholders first; question titles, ids, counts, timestamps and Quora's own markup stay verbatim. -`canary.yml` runs two real runs daily — a question URL for the inline-payload +`canary.yml` runs two real runs weekly (Mondays) — a question URL for the inline-payload path and a topic URL for the DOM-only one — and asserts that each behaves the way this README says it does. A run that did not parse real rows (blocked, never got its content, partial, or empty) turns the badge red rather than