Skip to content

Commit 3f7f429

Browse files
Merge pull request #109 from puppetlabs/gem_actions
Adding ruby version as an input for the gem workflows
2 parents b98f1f1 + 484b50c commit 3f7f429

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/gem_release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
required: false
1212
default: "main"
1313
type: "string"
14+
ruby-version:
15+
description: "Ruby version to use."
16+
required: false
17+
default: "2.7"
18+
type: "string"
1419

1520
jobs:
1621
release:
@@ -30,7 +35,7 @@ jobs:
3035
- name: "Setup ruby"
3136
uses: "ruby/setup-ruby@v1"
3237
with:
33-
ruby-version: "2.7"
38+
ruby-version: ${{ github.event.inputs.ruby-version }}
3439
bundler-cache: "true"
3540

3641
- name: "Bundle environment"

.github/workflows/gem_release_prep.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: "Version of gem to be released."
1717
required: true
1818
type: "string"
19+
ruby-version:
20+
description: "Ruby version to use."
21+
required: false
22+
default: "2.7"
23+
type: "string"
1924

2025
jobs:
2126
release_prep:
@@ -34,7 +39,7 @@ jobs:
3439
- name: "setup ruby"
3540
uses: "ruby/setup-ruby@v1"
3641
with:
37-
ruby-version: "2.7"
42+
ruby-version: ${{ github.event.inputs.ruby-version }}
3843
bundler-cache: "true"
3944

4045
- name: "bundle environment"

0 commit comments

Comments
 (0)