Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ on:
# 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:

permissions:
Expand Down Expand Up @@ -78,7 +82,7 @@ jobs:
- name: Walk a collection's items
id: items
env:
OPENSEA_PROXY: ${{ secrets.OPENSEA_PROXY }}
OPENSEA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.OPENSEA_PROXY || '' }}
# `set +e`: GitHub runs `run:` steps under `bash -e`, so a non-zero
# command aborts the step BEFORE the following echo, and
# continue-on-error does not change that — it stops the step failing
Expand Down Expand Up @@ -244,7 +248,7 @@ jobs:
- name: Scrape OpenSea's own ranking
id: ranking
env:
OPENSEA_PROXY: ${{ secrets.OPENSEA_PROXY }}
OPENSEA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.OPENSEA_PROXY || '' }}
run: |
set +e
python3 playwright_scraper.py \
Expand Down Expand Up @@ -324,7 +328,7 @@ jobs:
- name: Scrape a collection's sales feed
id: activity
env:
OPENSEA_PROXY: ${{ secrets.OPENSEA_PROXY }}
OPENSEA_PROXY: ${{ (github.event_name != 'schedule' || github.event.schedule == '20 6 * * 1') && secrets.OPENSEA_PROXY || '' }}
run: |
set +e
python3 playwright_scraper.py \
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ was written, because anyone can read it with `git show v0.1.0:CHANGELOG.md`.

## [Unreleased]

### Changed

- CI only: the canary's optional paid secret `OPENSEA_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.

## [0.2.0] - 2026-10-16

> **Behaviour changes in this batch, read before upgrading a script:**
Expand Down
Loading