Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
Use .ruby-version to choose Ruby version installed by GitHub Actions
Browse files Browse the repository at this point in the history
There a GitHub issue open for the setup-ruby action in which they are
considering making this happen automatically, but somebody gave this way
of implementing it for now:
actions/setup-ruby#31 (comment)
  • Loading branch information
lawrence-forooghian committed Jan 17, 2020
1 parent 7546fe7 commit 5f0ce12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/.continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: echo "::set-output name=RUBY_VERSION::$(cat .ruby-version)"
id: rbenv
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6.3'
ruby-version: "${{ steps.rbenv.outputs.RUBY_VERSION }}"
- name: Set up Docker
run: docker network create test
- name: Set up Postgres
Expand Down

0 comments on commit 5f0ce12

Please sign in to comment.