Skip to content

Commit

Permalink
accept env vars when running test-gem
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 16, 2024
1 parent bfef8e9 commit 6971078
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
default: bundle exec rake spec
required: false
type: string
environment_variables:
description: arbitrary environment variables from caller
required: false
default: ''
type: string

jobs:
setup_matrix:
Expand All @@ -34,6 +39,8 @@ jobs:
matrix:
ruby: ${{ fromJSON(needs.setup_matrix.outputs.ruby) }}
steps:
- name: Load environment variables from caller
run: echo "${{ inputs.environment_variables }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 6971078

Please sign in to comment.