Skip to content

Commit d0fc7e0

Browse files
committed
fix(ci): push the verification status refresh to TechAPI develop
The job checks out TechAPI's default branch — develop since the git-flow switch — commits the refreshed status.json there, then pushed HEAD:main. main has not moved since, so the push is rejected as non-fast-forward and every run fails after doing all the work: status.json on develop is stale since 2026-07-31. Push to develop, pin the checkout ref so it cannot drift from the push target again, and rebase first since several bots write to develop and a status refresh is not worth failing over a race. (bump-techapi.yml's HEAD:main is correct — that one pushes to TechEngine's own main, which has no develop.) Refs #1
1 parent 37cb515 commit d0fc7e0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/verify-status.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: verify-status
33
# Keep TechAPI's data/_verify/status.json (the verification-state aggregate: how
44
# many records are verified + Tier 0 bands per category) current. Runs in
55
# TechEngine against a TechAPI checkout and commits the refreshed file back to
6-
# TechAPI main as TechEngineBot. Fires when TechAPI main changes (relayed by
6+
# TechAPI develop as TechEngineBot. Fires when TechAPI main changes (relayed by
77
# TechAPI's notify-engine -> techapi-updated) and daily as a backstop. The
88
# "commit only if changed" guard means the status commit can't loop.
99
on:
@@ -35,6 +35,9 @@ jobs:
3535
with:
3636
repository: GetTechAPI/TechAPI
3737
path: TechAPI
38+
# TechAPI follows git-flow. This already resolved to develop as the
39+
# default branch — pin it so it cannot drift from the push target.
40+
ref: develop
3841
token: ${{ secrets.TECHENGINEBOT_TOKEN || secrets.TECHAPI_TOKEN || secrets.GITHUB_TOKEN }}
3942

4043
- uses: actions/setup-python@v6
@@ -57,4 +60,7 @@ jobs:
5760
git config user.name "TechEngineBot"
5861
git config user.email "289859915+TechEngineBot@users.noreply.github.com"
5962
git commit -m "chore(verify): refresh verification status aggregate"
60-
git push origin HEAD:main
63+
# Rebase first: several bots write to develop, and a status refresh is
64+
# never worth failing the run over a race.
65+
git pull --rebase origin develop
66+
git push origin HEAD:develop

0 commit comments

Comments
 (0)