Skip to content

Commit d10e8ab

Browse files
authored
Merge pull request #126 from puppetlabs/actions
Adding ruby version input to the action.
2 parents a70dcc1 + 2716e72 commit d10e8ab

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ on:
77
description: "The target for the release. This can be a commit sha or a branch."
88
required: false
99
default: "main"
10+
ruby-version:
11+
description: "Ruby version to use."
12+
required: false
13+
default: "3.1"
1014

1115
jobs:
1216
release:
1317
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
1418
with:
1519
target: "${{ github.event.inputs.target }}"
20+
ruby-version: "${{ github.event.inputs.ruby-version }}"
1621
secrets: "inherit"

.github/workflows/release_prep.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ on:
1010
version:
1111
description: "Version of gem to be released."
1212
required: true
13+
ruby-version:
14+
description: "Ruby version to use."
15+
required: false
16+
default: "3.1"
1317

1418
jobs:
1519
release_prep:
1620
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
1721
with:
1822
target: "${{ github.event.inputs.target }}"
19-
version: "${{ github.events.inputs.version }}"
23+
version: "${{ github.event.inputs.version }}"
24+
ruby-version: "${{ github.event.inputs.ruby-version }}"
2025
secrets: "inherit"

0 commit comments

Comments
 (0)