Repository navigation
fix(ci): 빌드 게이트 콘텐츠 동기화 안전화 - #17
Merged
Merged
Conversation
merge-develop.yml과 pr-build.yml 빌드 게이트가 git checkout origin/main -- docs/ blog/ static/img/ 만 수행해, develop 또는 PR 브랜치에만 있고 main에선 삭제·rename된 stale 파일이 작업트리에 남아 옛 frontmatter(예: 삭제된 author 키)로 빌드가 깨졌음. rm -rf 후 git checkout으로 콘텐츠 디렉토리를 main 버전으로 완전 교체.
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.
변경
배경
이전 패턴 `git checkout origin/main -- docs/ blog/ static/img/`은
추가·수정만 반영하고 삭제는 반영하지 않는다. 그 결과:
실제 사고 사례: KST 11:00 `merge-develop.yml` 실행에서
`2026-05-27-테스트-...md` (옛 파일명, `jay` author 키 참조)가 develop에
남아 있어 새 `authors.yml` (`김주홍` 키)와 충돌 → 빌드 fail.
안전성
`rm -rf`는 빌드 step의 ephemeral 작업트리에서만 동작.
실제 머지 단계(`git merge develop`)는 commit graph 기반이라 develop의
변경은 정상 보존됨.
검증