CICD-143 · Preview matching protected version tags
Encyclopedia · Registries and releases · All snippets
Previous · CICD-142 · Next · CICD-144
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites authorized test registry, scoped credentials and candidate artifact.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
git tag --list 'v*' --sort=-version:refname | head -n 53. How it works
Git lists matching local tags and sorts them by version refname. Ref protection and commit provenance still need independent verification.
4. Verify the result
Compare planned release tag with an approved versioning scheme and source commit.
Validation syntax-validated (Bash parse). Status definitions.