diff --git a/.github/workflows/mend_ruby.yml b/.github/workflows/mend_ruby.yml index 3217ab4..7d5ec0b 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 dee22cd..4049372 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"