Skip to content

fix(mirror): el publish no toca .github/workflows/ del espejo - #22

Merged
donchelo merged 1 commit into
mainfrom
fix/mirror-sin-workflows
Oct 30, 2026
Merged

donchelo merged 1 commit into
mainfrom
fix/mirror-sin-workflows

Conversation

@donchelo

Copy link
Copy Markdown
Contributor

Causa raíz

El run https://github.com/ai4u-com-co/kernel/actions/runs/41104065349 (tag platform-v0.8.0) falla en "Push del contenido al repo espejo":

! [remote rejected] main -> main (refusing to allow a GitHub App to create or update workflow .github/workflows/ci.ymlwithoutworkflows permission)

El rsync de mirror.yml copia también packages/<paquete>/.github/workflows/ci.yml y lo modifica en el espejo; la GitHub App ai4u-bump-bot (contents:write, metadata:read, pull_requests:write) no puede tocar workflows.

Cambio

  • mirror.yml: rsync -a --delete --exclude=.git --exclude='/.github/workflows/' .... La exclusión anclada también protege el destino contra --delete. Plantillas Issue/PR siguen sincronizándose. workflow_dispatch, concurrency y reintentos intactos.
  • CLAUDE.md y README.md: el publish no toca los workflows del espejo (se editan allí); los de packages/*/.github/workflows/ son copias de referencia.

Alcance

Todos los espejos. Ningún cambio de permisos ni de secretos de la App.

Evidencia (local, copia shallow de ai4u-com-co/platform, sin push, borrada después)

Mismo rsync desde packages/platform/ (0.8.0):

  • .github/workflows/ci.yml: git diff --stat vacío (sin cambios).
  • Aparecen .github/ISSUE_TEMPLATE/{bug,config,mejora,tarea}.yml y .github/PULL_REQUEST_TEMPLATE.md.
  • Resto de 0.8.0 sincronizado (44 archivos: src/, dist/, tests/, package.json...).
  • CI local: npm ci && npm run type-check && npm test && npm run build OK; git diff --quiet -- packages/*/dist limpio.

Pasos humanos tras el merge

Re-publicar sin re-taggear: gh workflow run mirror.yml -f tag=platform-v0.8.0

🤖 Generated with Claude Code

https://claude.ai/code/session_015nTgTv7S3gQwaoNFw5fZeG

El push al espejo se rechazaba (run de platform-v0.8.0) con: refusing to allow a
GitHub App to create or update workflow .github/workflows/ci.yml without
workflows permission. El rsync copiaba packages/<paquete>/.github/workflows/ci.yml.
Se excluye /.github/workflows/ del rsync (protege tambien contra --delete); las
plantillas Issue/PR siguen sincronizandose. Se actualizan CLAUDE.md y README.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015nTgTv7S3gQwaoNFw5fZeG
@donchelo
donchelo marked this pull request as ready for review October 30, 2026 18:17
@donchelo
donchelo merged commit 42a3549 into main Oct 30, 2026
1 check passed
@donchelo
donchelo deleted the fix/mirror-sin-workflows branch October 30, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant