Skip to content

Commit

Permalink
Merge pull request #109 from puppetlabs/gem_actions
Browse files Browse the repository at this point in the history
Adding ruby version as an input for the gem workflows
  • Loading branch information
jordanbreen28 authored Sep 20, 2024
2 parents b98f1f1 + 484b50c commit 3f7f429
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 3f7f429

Please sign in to comment.