cozystack/.github/workflows
Myasnikov Daniil ac14df54d4
ci(docs): promote next/ trunk on new minor/major releases
The website repo is switching to a permanent `content/en/docs/next/`
trunk (cozystack/website#495). Released version directories are no
longer pre-created — the upstream release workflow is now responsible
for explicitly promoting `next/` → `vX.Y/` on new minor/major releases
via `make release-next`.

Update the `update-website-docs` job to match that contract:

- New `Determine if this release promotes next/` step parses the tag
  and only enables promotion for final `vX.Y.Z` tags where
  `content/en/docs/vX.Y/` does not already exist. Prereleases and
  patch releases keep the old behaviour (target routing is handled
  by the website Makefile on its own).
- New `Promote next/ to released version` step runs
  `make release-next RELEASE_TAG=...` before `make update-all`, so
  the subsequent `update-all` routes into the freshly-created
  `vX.Y/` directory and `next/` stays untouched as the trunk for
  the following release.
- `git add content hugo.yaml` to pick up the version registration
  that `release-next` writes via `register_version.sh`.
- Convert the existing `update-all` step to use `env:` vars,
  matching the new step and addressing the workflow-injection
  hardening guidance.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-21 08:54:41 +05:00
..
auto-release.yaml ci: use cozystack org noreply email for bot commits 2026-04-13 16:29:07 +02:00
backport.yaml [ci] Update korthout/backport-action@v3.2.1 2025-12-09 14:34:37 +01:00
pre-commit.yml [docs] Update cozyvalues-gen 2026-03-25 15:59:22 +05:00
pull-requests-release.yaml ci: use cozystack org noreply email for bot commits 2026-04-13 16:29:07 +02:00
pull-requests.yaml ci(pull-requests): replace GH_PAT with cozystack-ci GitHub App token 2026-04-13 09:28:52 +02:00
retest.yaml feat(ci): add /retest command to rerun tests from Prepare environment 2026-01-02 21:23:27 +01:00
tags.yaml ci(docs): promote next/ trunk on new minor/major releases 2026-04-21 08:54:41 +05:00
update-releasenotes.yaml [workflow] Add GitHub Action to update release notes from changelogs 2025-12-24 15:02:04 +01:00