From fab4e0d6dec761844b19b40e6baf0f1d886eb880 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 23 Jun 2026 09:39:45 +0200 Subject: [PATCH] fix(ci): restrict workflow to PRs and improve release tagging Restrict the CI pipeline to pull request events only by removing the unconfigured push trigger and eliminating a duplicate pull_request block in the workflow file. Update the Makefile to suppress stderr from the aichat command and introduce a fallback release tag message for robust version tagging. Additionally, bump the obikmer crate version to 1.1.19. --- .gitea/workflows/ci.yml | 3 +-- Makefile | 5 +++-- src/Cargo.lock | 2 +- src/obikmer/Cargo.toml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ae5729f..64ab1af 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,9 +1,8 @@ name: CI on: - push: - branches: ['main'] pull_request: + branches: ['main'] jobs: build: diff --git a/Makefile b/Makefile index 8faad38..dedc3be 100644 --- a/Makefile +++ b/Makefile @@ -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" diff --git a/src/Cargo.lock b/src/Cargo.lock index ec0a075..7ae6c83 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -1704,7 +1704,7 @@ dependencies = [ [[package]] name = "obikmer" -version = "1.1.18" +version = "1.1.19" dependencies = [ "clap", "csv", diff --git a/src/obikmer/Cargo.toml b/src/obikmer/Cargo.toml index 634fac7..229bfb3 100644 --- a/src/obikmer/Cargo.toml +++ b/src/obikmer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "obikmer" -version = "1.1.18" +version = "1.1.19" edition = "2024" [[bin]]