Skip to content

feat(puppetcore): Add puppetcore gem source switch capability #250

feat(puppetcore): Add puppetcore gem source switch capability

feat(puppetcore): Add puppetcore gem source switch capability #250

Workflow file for this run

name: "ci"
on:
pull_request:
branches:
- "main"
workflow_dispatch:
# GitHub Actions doesn't allow string interpolation in the 'secrets:' section of a workflow call.
# We need to construct the authentication string with the token here as an environment variable,
# then pass that constructed variable as a secret to the called workflow.
env:
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN }}"
jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@puppetcore"
with:
# This line enables shellcheck to be run on this repository
run_shellcheck: true
secrets:
# Pass the pre-formatted authentication string from the environment variable
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: ${{ env.BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM }}

Check failure on line 23 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 23, Col: 50): Unrecognized named-value: 'env'. Located at position 1 within expression: env.BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM
inherit: true