From d12e840633bf0a587ceab4d5a2b3cbc2717d2d59 Mon Sep 17 00:00:00 2001 From: Serge <39198054+sergejomon@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:50:53 +0100 Subject: [PATCH] doc(tag_prefix): add doc on how to access tag in conf --- src/guide/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/guide/README.md b/src/guide/README.md index 85e0cad..22823d7 100644 --- a/src/guide/README.md +++ b/src/guide/README.md @@ -975,6 +975,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}} + +```toml +tag_prefix = "v" + + +post_bump_hooks = [ + "git push origin {{version_tag}}" +] +``` + ## Make Cocogitto skip CI CD Cocogitto will create a commit when performing a bump, which can trigger your CI/CD if you have one. Some CI/CD tools support a "skip_ci" string that you can add to a commit which will skip the pipeline execution. To do so with `cog`, you can use the `skip_ci` configuration in your `cog.toml` file or the `cog bump --skip-ci ` option to add a "skip_ci" pattern your CI/CD tool supports.