fix(ci): restrict workflow to PRs and improve release tagging #45

Merged
coissac merged 1 commits from push-louqrszyuqpz into main 2026-06-23 07:52:36 +00:00
4 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -1,9 +1,8 @@
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
+3 -2
View File
@@ -92,6 +92,7 @@ release: bump-version
git_hash=$$(jj log -r @ --no-graph -T 'commit_id'); \
commits=$$(jj log -r 'latest(tags())..@' --no-graph -T 'description ++ "\n"' 2>/dev/null || \
jj log --no-graph -T 'description ++ "\n"' --limit 30); \
notes=$$(printf 'Write concise markdown release notes for obikmer (a Rust kmer genomics tool). Be technical and direct. Base them strictly on these commit messages:\n\n%s' "$$commits" | aichat); \
git tag -a "v$$new_version" -m "$$notes" "$$git_hash" && \
notes=$$(printf 'Write concise markdown release notes for obikmer (a Rust kmer genomics tool). Be technical and direct. Base them strictly on these commit messages:\n\n%s' "$$commits" | aichat 2>/dev/null); \
tag_msg="$${notes:-Release v$$new_version}"; \
git tag -a "v$$new_version" -m "$$tag_msg" "$$git_hash" && \
git push origin "v$$new_version"
+1 -1
View File
@@ -1704,7 +1704,7 @@ dependencies = [
[[package]]
name = "obikmer"
version = "1.1.18"
version = "1.1.19"
dependencies = [
"clap",
"csv",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "obikmer"
version = "1.1.18"
version = "1.1.19"
edition = "2024"
[[bin]]