Fix sync workflow self-include (polluted GitHub with gh-mirror/) #111

Merged
claude merged 1 commits from fix/sync-workflow-self-include into main 2026-06-24 21:41:13 -04:00

1 Commits

Author SHA1 Message Date
claude 8a62010375 fix(ci): clone GitHub mirror OUTSIDE the source tree (was self-including)
CI / check (pull_request) Successful in 7s
The sync workflow cloned the GitHub mirror into `./gh-mirror` (under the source
checkout), then rsync `./` -> `gh-mirror/` swept the `gh-mirror` directory back
into the destination, polluting the public mirror with a `gh-mirror/` subtree.

Clone to `${RUNNER_TEMP:-/tmp}/awc-gh-mirror` instead, and add a belt-and-suspenders
`--exclude='gh-mirror/'` so a future re-use of the old name can't recur. The next
sync will, via rsync --delete, also remove the polluted directory from GitHub.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TfzV5QvtPDz8LJS3Pu5VLT
2026-06-24 21:40:51 -04:00