Skip to content

Commit

Permalink
Adding ruby version as an input for the gem workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez committed Sep 20, 2024
1 parent b98f1f1 commit 484b50c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/gem_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
required: false
default: "main"
type: "string"
ruby-version:
description: "Ruby version to use."
required: false
default: "2.7"
type: "string"

jobs:
release:
Expand All @@ -30,7 +35,7 @@ jobs:
- name: "Setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "2.7"
ruby-version: ${{ github.event.inputs.ruby-version }}
bundler-cache: "true"

- name: "Bundle environment"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/gem_release_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
description: "Version of gem to be released."
required: true
type: "string"
ruby-version:
description: "Ruby version to use."
required: false
default: "2.7"
type: "string"

jobs:
release_prep:
Expand All @@ -34,7 +39,7 @@ jobs:
- name: "setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "2.7"
ruby-version: ${{ github.event.inputs.ruby-version }}
bundler-cache: "true"

- name: "bundle environment"
Expand Down

0 comments on commit 484b50c

Please sign in to comment.