From 55d2c9f9d1838eb458a4e9ee8392f1530030922e Mon Sep 17 00:00:00 2001 From: Seungpyo1007 Date: Fri, 18 Sep 2026 04:47:01 +0900 Subject: [PATCH] fix(ci): fetch TechAPI history where the dump reads record timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/deploy-pages.yml | 2 ++ .github/workflows/dump-refresh.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 481e339..f7bc9ce 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -28,6 +28,8 @@ jobs: with: repository: GetTechAPI/TechAPI path: TechAPI + # Record timestamps are read from git history (app/seed.py). + fetch-depth: 0 - uses: actions/setup-python@v6 with: diff --git a/.github/workflows/dump-refresh.yml b/.github/workflows/dump-refresh.yml index 49183bc..e3bd674 100644 --- a/.github/workflows/dump-refresh.yml +++ b/.github/workflows/dump-refresh.yml @@ -42,6 +42,9 @@ jobs: repository: GetTechAPI/TechAPI path: techapi token: ${{ secrets.TECHENGINEBOT_TOKEN || secrets.TECHAPI_TOKEN || secrets.GITHUB_TOKEN }} + # created_at/updated_at come from each record's git history; with the + # default depth-1 checkout every record would report the tip commit. + fetch-depth: 0 - uses: actions/setup-python@v6 with: