Skip to content

Commit 596381f

Browse files
committed
fix(ci): fetch TechAPI history where the dump reads record timestamps
With the default depth-1 checkout, git log sees one commit, so every record reported the tip commit time — the dump-refresh PR after #65 showed all pages sharing a single timestamp. Refs #1
1 parent 175217f commit 596381f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/deploy-pages.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
with:
2929
repository: GetTechAPI/TechAPI
3030
path: TechAPI
31+
# Record timestamps are read from git history (app/seed.py).
32+
fetch-depth: 0
3133

3234
- uses: actions/setup-python@v6
3335
with:

‎.github/workflows/dump-refresh.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
repository: GetTechAPI/TechAPI
4343
path: techapi
4444
token: ${{ secrets.TECHENGINEBOT_TOKEN || secrets.TECHAPI_TOKEN || secrets.GITHUB_TOKEN }}
45+
# created_at/updated_at come from each record's git history; with the
46+
# default depth-1 checkout every record would report the tip commit.
47+
fetch-depth: 0
4548

4649
- uses: actions/setup-python@v6
4750
with:

0 commit comments

Comments
 (0)