Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/module_release_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
description: "Module version to be released."
required: true
type: "string"
ruby_version:
description: "Ruby version to use"
required: false
default: "3.2"
type: "string"


jobs:
Expand Down Expand Up @@ -42,12 +47,20 @@ jobs:
# Update version in metadata.json, only matching first occurrence
sed -i "0,/$current_version/s//${{ github.event.inputs.version }}/" $(find . -name 'metadata.json')

- name: "Configure forge authentication"
env:
FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
run: |
if [ -n "$FORGE_TOKEN" ]; then
echo "PUPPET_FORGE_TOKEN=$FORGE_TOKEN" >> $GITHUB_ENV
echo "BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM=forge-key:$FORGE_TOKEN" >> $GITHUB_ENV
fi

- name: "setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.2"
bundler-cache: "true"
bundler: 2.4.22
ruby-version: ${{ inputs.ruby_version }}
bundler-cache: true

- name: "bundle environment"
run: |
Expand Down
Loading