[MAINT] Github Actions Reunification - `release-please`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- github-actions, yaml
- Área
- ci-cd
Línea de trabajo
Start with .github/workflows/release-please.yml and the uses: ...@main refs in the */action.yml files, plus .release-please-manifest.json. First confirm the release branch name by inspecting an existing release PR, then update the action org and inputs. Porting the pin and pinback steps needs bot PAT and GPG secrets from mage-os org admins, so this cannot be fully tested without them. Done means both phases are ported and the admins have confirmed the secrets and branch protection setup.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Workflow: release-please.yml
Status: 🔴 Needs update
Files: .github/workflows/release-please.yml
Background: why this workflow is more complex than it looks
Release-please manages the release PR and tag. That part is simple. The complexity comes from a problem specific to this repo: actions here cross-reference each other using absolute refs.
For example, setup-magento/action.yml might call:
uses: mage-os/github-actions/cache-magento@main
On main, @main is correct — you want the latest. But what happens when you tag v7.0.0? That tag still contains @main. So a user who pins their workflow to mage-os/github-actions/[email protected] is running the v7.0.0 outer action, but @main (always-latest) of every internal dep. Their "pinned" version is not actually stable.
The fix is: before the release tag is cut, replace all @main refs with the upcoming version number. Then after the release, restore @main on the main branch so development continues normally.
This project should replicate how Graycore handles its releases with release-please / pinback.
How it works end-to-end
Release-please creates and maintains a release PR on a long-lived branch (e.g., release-please--branches--main--components--github-actions). That PR stays open, accumulating changelog entries, until someone merges it to cut a release.
The workflow runs on every push to main and handles two distinct phases:
Phase 1 — Pin refs on the open release PR (runs on every push while release PR is open)
- Run release-please — it updates the release PR but does NOT create a release yet (that only happens when the PR is merged).
- Check if the release branch exists (i.e., a release PR is open).
- If yes: check out the release branch, read the pending version from
.release-please-manifest.json, andsed-replace every@mainref with@vX.Y.Zacross all*/action.ymlfiles and non-release workflows. - GPG-sign and push that commit to the release branch.
This runs on every push to main, so the release PR always has up-to-date pinned refs. When it's finally merged and the tag is cut, the snapshot is coherent.
Phase 2 — Pinback after a release is cut (runs once, right after the release PR merges)
- Check out
main. sed-replace the now-pinned version refs back to@main.- GPG-sign and open a PR to commit that restoration to
main.
This is the "pinback" — it returns main to using floating @main refs so the cycle can start again for the next release.
Dependents
Internal workflow — not called by external repos directly.
Changes needed
- Fix action org —
google-github-actions/release-please-action@v4→googleapis/release-please-action@v4 - Remove
command: manifestanddefault-branch: maininputs - Add
workflow_dispatchtrigger - Determine and set
RELEASE_BRANCH— release-please names this branch deterministically from the repo/component config; find the correct value by checking an existing release PR in the mage-os repo or the release-please config, then hardcode it as theRELEASE_BRANCHenv var - Port pin-on-release-branch steps — adapt
sedpattern fromgraycoreio/github-actions-magento2→mage-os/github-actions; update bot git identity - Port pinback job — same sed and identity changes
- Provision secrets in mage-os org — need a bot PAT with repo write access and a GPG key for signed commits; coordinate with mage-os org admins before this can be tested
Notes
- GPG signing is only strictly required if the mage-os repo enforces signed commits on protected branches — confirm branch protection rules; if not enforced it can be simplified
- Lenguaje dominante
- TypeScript
- Estrellas
- 12
- Forks
- 15
- Merge medio
- 3 d 15 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mage-os/github-actions
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
mage-os/github-actions#341 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
mage-os/github-actions#340 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
mage-os/github-actions#364 ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 65/100
mage-os/github-actions#363 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
mage-os/github-actions#359 · 3 comentarios ·
Todos los issues de mage-os/github-actions
Issues similares
-
api bug priority:low ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wondermoney/wondermoney#862 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rootsiemen/seo-agent-tools#70 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
elecnix/bellwether#467 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día