about summary refs log tree commit diff stats
path: root/templates/c/cog.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 23:44:59 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-01 00:00:07 +0200
commit2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c (patch)
treed9894056cafdf83fd7edb7b785ac6076cdc177cc /templates/c/cog.toml
parentrefactor(flake): Move some nix code out of flake.nix (diff)
downloadflake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.tar.gz
flake-templates-2bb1c6d4948eecbdacea1267ee0a132aa88a7b5c.zip
fix(templates): Update already done templates with improvements from new ones
Diffstat (limited to '')
-rw-r--r--templates/c/cog.toml9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/c/cog.toml b/templates/c/cog.toml
index d34ced6..ff2c110 100644
--- a/templates/c/cog.toml
+++ b/templates/c/cog.toml
@@ -2,12 +2,11 @@ tag_prefix = "v"
 branch_whitelist = ["main", "prime"]
 ignore_merge_commits = false
 
-[commit_types]
-
 pre_bump_hooks = [
-  "nix flake check",                # verify the project builds
-  "./scripts/renew_copyright_header.sh", # update the license header in each file
-  "nix fmt",                        # format
+  "nix flake check",                                                    # verify the project builds
+  "./scripts/renew_copyright_header.sh",                                # update the license header in each file
+  "flake_version_update --version v{{version}} --input-file flake.nix", # update the version in the flake.nix file
+  "nix fmt",                                                            # format
 ]
 post_bump_hooks = [
   "git push",