From 7c20ad2e211ddf622846f2ab1995d509e38cfdfc Mon Sep 17 00:00:00 2001 From: Tungle Duy Date: Tue, 8 Sep 2026 15:32:27 +0700 Subject: [PATCH] cloudsmith_release: make ruby_version configurable, bump default to JRuby 10 + bundler 2.7.2 Add a ruby_version input (defaulting to jruby-10.0.6.0, the JRuby 10 LTS line) so callers can override the JRuby version used when with_ruby is true, instead of it being hardcoded to jruby-9.4.15.0. Bump the paired bundler install to 2.7.2 to match JRuby 10.0.x's bundled bundler version. Used by killbill-admin-ui-standalone's snapshot_release.yml, which already pins jdk: '21' explicitly for its own JDK setup step (unaffected by this repo's jdk input default). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/cloudsmith_release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cloudsmith_release.yml b/.github/workflows/cloudsmith_release.yml index 919545d..74361cb 100644 --- a/.github/workflows/cloudsmith_release.yml +++ b/.github/workflows/cloudsmith_release.yml @@ -88,6 +88,11 @@ on: required: false default: 'false' type: string + ruby_version: + description: The Ruby (or JRuby) version used when with_ruby is true + required: false + default: 'jruby-10.0.6.0' + type: string target_file: description: Target file name required: false @@ -120,11 +125,11 @@ jobs: if: ${{ inputs.with_ruby == 'true' }} uses: ruby/setup-ruby@v1 with: - ruby-version: 'jruby-9.4.15.0' + ruby-version: ${{ inputs.ruby_version }} bundler-cache: false - - name: Install Bundler 2.6.9 + - name: Install Bundler 2.7.2 if: ${{ inputs.with_ruby == 'true' }} - run: gem install bundler -v 2.6.9 + run: gem install bundler -v 2.7.2 - name: Configure Sonatype mirror uses: s4u/maven-settings-action@v3.1.0 # Go to Sonatype directly to avoid delay syncs (could get rid of this if actions/setup-java were to support mirrors).