From d6b1fd24dcbaaca6de458f04a9fe88d1dc3dc542 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 11:09:51 +0000 Subject: [PATCH] Skip Bundler source-control tasks in CI to fix release workflow The rubygems/release-gem action runs `rake release`, which tries to create and push a git tag. This fails because the bump job already created the tag. Clear the guard_clean and source_control_push tasks in CI so `rake release` only builds and pushes the gem. https://claude.ai/code/session_01CvCNpdSjh1STBdmS9n5DN9 --- Rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Rakefile b/Rakefile index b3021e5..13dc578 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,16 @@ # frozen_string_literal: true require "bundler/gem_tasks" + +# In CI the release workflow already handles tags via the bump job, +# so skip Bundler's source-control tasks to avoid "tag already exists" errors. +if ENV["CI"] + Rake::Task["release:guard_clean"].clear + task "release:guard_clean" + Rake::Task["release:source_control_push"].clear + task "release:source_control_push" +end + require "rake/testtask" Rake::TestTask.new(:test) do |t|