From 9c0af8143feb68345e1076fdbe69171f2c66bceb Mon Sep 17 00:00:00 2001 From: Maqsood Ahmad Date: Tue, 4 Aug 2026 16:05:10 +0530 Subject: [PATCH] feat(main) Add ruby_version input parameter with default of '3.1' Co-Authored-By: Claude Opus 4.8 --- .github/workflows/mend_ruby.yml | 9 +++++++-- .github/workflows/module_acceptance.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mend_ruby.yml b/.github/workflows/mend_ruby.yml index 3217ab43..7d5ec0b0 100644 --- a/.github/workflows/mend_ruby.yml +++ b/.github/workflows/mend_ruby.yml @@ -14,6 +14,11 @@ on: product_name: default: 'content-and-tooling' type: string + ruby_version: + description: "Ruby version to use" + required: false + default: '3.1' + type: "string" env: MEND_API_KEY: ${{ secrets.MEND_API_KEY != '' && secrets.MEND_API_KEY || inputs.api_key }} @@ -46,9 +51,9 @@ jobs: - name: "setup ruby" if: success() - uses: "ruby/setup-ruby@v1" + uses: "ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f" # v1.310.0 with: - ruby-version: 3.1 + ruby-version: ${{ inputs.ruby_version }} - name: "bundle lock" if: success() diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index dee22cd7..40493728 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -26,6 +26,11 @@ on: description: "Disable and stop apparmor" default: false type: boolean + ruby_version: + description: "Ruby version to use" + required: false + default: '3.1' + type: "string" permissions: @@ -72,7 +77,7 @@ jobs: - name: "Setup ruby" uses: "ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f" # v1.310.0 with: - ruby-version: "3.1" + ruby-version: ${{ inputs.ruby_version }} bundler-cache: true - name: "Bundle environment" @@ -184,7 +189,7 @@ jobs: - name: "Setup ruby" uses: "ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f" # v1.310.0 with: - ruby-version: "3.1" + ruby-version: ${{ inputs.ruby_version }} bundler-cache: true - name: "Bundle environment"