feat(ci): reverse submodule sync + trim refresh-data#7
Merged
Conversation
Add bump-techapi.yml: on a repository_dispatch (techapi-updated) from TechAPI, advance this repo's TechAPI submodule gitlink to TechAPI's latest main (payload sha, or remote HEAD fallback), commit and push to main. Idempotent no-op when already current; also runnable via workflow_dispatch. Loop-safe: the bump is pushed with GITHUB_TOKEN, whose pushes do not trigger other workflows, so notify-techapi never fires on it. Mirrors TechAPI's bump-engine.yml; needs TechAPI to add a notify-engine.yml sender (with paths-ignore on its TechEngine gitlink).
Drop the weekly cron from refresh-data.yml (it duplicated weekly-refresh.yml, which now owns the Monday enrich+gate+dump+PR run). Keep the push:app/** + manual triggers so a change to engine code still verifies that app.dump generates end-to-end.
Add paths-ignore: [TechAPI] so commits that only move the TechAPI submodule pointer (bump-techapi.yml's bumps) don't dispatch engine-updated. Symmetric with TechAPI's notify-engine ignoring its TechEngine gitlink, converging each real change to exactly one bump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. 역방향 서브모듈 sync —
bump-techapi.yml(신규)TechAPI가 바뀌면 TechEngine의
TechAPI @ <sha>포인터를 자동으로 최신 main으로 당김.notify-techapi(정방향)의 대칭.repository_dispatch: techapi-updated(TechAPI가 보냄) +workflow_dispatch(수동)GITHUB_TOKEN으로 push → GITHUB_TOKEN의 push는 다른 워크플로를 트리거하지 않음 →notify-techapi재발사 없음 → 핑퐁 없음.2.
refresh-data.yml→ 덤프 스모크테스트로 축소주간 cron 제거(weekly-refresh.yml과 중복).
push: app/**+ 수동만 남겨 '엔진 코드 바뀌면 app.dump가 여전히 생성되나' 가드로 유지.bump-techapi.yml은 받는 쪽이라, TechAPI가 신호를 보내야 작동합니다:notify-engine.yml추가:on: push: branches:[main]시 GetTechAPI/TechEngine에repository_dispatch (event-type: techapi-updated, payload {sha})발사.paths-ignore로 자신의TechEnginegitlink 변경(=bump-engine 커밋)은 제외 → 루프 차단.ENGINE_TOKEN)으로 등록 필요(신규).