Skip to content

Commit

Permalink
taking as input
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez committed Sep 20, 2024
1 parent decfafc commit 2716e72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ on:
description: "The target for the release. This can be a commit sha or a branch."
required: false
default: "main"
ruby-version:
description: "Ruby version to use."
required: false
default: "3.1"

jobs:
release:
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
with:
target: "${{ github.event.inputs.target }}"
ruby-version: "3.1"
ruby-version: "${{ github.event.inputs.ruby-version }}"
secrets: "inherit"
6 changes: 5 additions & 1 deletion .github/workflows/release_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ on:
version:
description: "Version of gem to be released."
required: true
ruby-version:
description: "Ruby version to use."
required: false
default: "3.1"

jobs:
release_prep:
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
with:
target: "${{ github.event.inputs.target }}"
version: "${{ github.event.inputs.version }}"
ruby-version: "3.1"
ruby-version: "${{ github.event.inputs.ruby-version }}"
secrets: "inherit"

0 comments on commit 2716e72

Please sign in to comment.