From 97787ab40c8cf4f7069b7aa0c39f94dbe9bd41c2 Mon Sep 17 00:00:00 2001 From: Jakob Skjerning Date: Fri, 2 Jun 2023 10:56:50 +0200 Subject: [PATCH] Expose Rails version in ENV --- .github/workflows/ruby.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 7c31958..ff69bea 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -25,6 +25,9 @@ jobs: rails-version: ['5.2.5', '6.0.3.6', '6.1.3.1', 'main'] ruby-version: ['2.5', '2.6', '2.7', '3.0'] + env: + RAILS_VERSION: ${{ matrix.rails-version }} + steps: - uses: actions/checkout@v3 - name: Set up Ruby @@ -33,7 +36,6 @@ jobs: # uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 with: - rails-version: ${{ matrix.rails-version }} ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests