From a3da049b0adc0e9a70e9e95eb002127e39cbb555 Mon Sep 17 00:00:00 2001 From: SergeJomon Date: Fri, 8 Mar 2024 15:43:54 +0100 Subject: [PATCH] chore(website): add doc on how to access tag with prefix in conf --- docs/website/guide/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/website/guide/README.md b/docs/website/guide/README.md index dc5d5e1d..d8f8ab43 100644 --- a/docs/website/guide/README.md +++ b/docs/website/guide/README.md @@ -976,6 +976,17 @@ To tell `cog` to pick only version starting with a prefix set this in your `cog. tag_prefix = "v" ``` +full tag including the prefix can be access in configuration file with {{version_tag}} + +tag_prefix = "v" + + +```toml +post_bump_hooks = [ +"git push origin {{version_tag}}" +] +``` + ## Make Cocogitto skip CI CD The ```--skip-ci``` option of the ```bump``` and ```commit``` commands offers the possibility to skip CI/CD by adding a "skip-ci" string your commits. The default string used by Cocogitto is ```[skip ci]``` but you can override it with your own string :