feat(puppetcore): Add puppetcore gem source switch capability #250
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
|
||
| inherit: true | ||