ci: add automatic semver tagging on merge to main #10
Reference in New Issue
Block a user
Delete Branch "feat/semver-tag-action"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Ajoute
anothrNick/github-tag-action(pinned SHA4ed4496— v1.75.0) pour créer automatiquement un tag git semver quand on merge surmain.Comportement
main(typiquement après un merge de PR), l'action inspecte les messages de commits depuis le dernier tag.#major→ incrémente la version majeure (ex:v1.0.0→v2.0.0)#minor→ incrémente la version mineure (ex:v1.0.0→v1.1.0)#patch→ incrémente le patch (ex:v1.0.0→v1.0.1)patch.Changements dans
.gitea/workflows/docker-build.yamlfetch-depth: 0au checkoutgithub.event_name == 'push' && github.ref == 'refs/heads/main'Utilisation
Pour contrôler la version, inclure
#major,#minor, ou#patchdans le message du merge commit (ou dans le commit body quand c'est un push direct). La casse est ignorée.N'a pas été fait
latestet avec les métadonnées Docker existantes.