alphagov / tech-docs-gem

Gem to distribute the tech docs project
https://tdt-documentation.london.cloudapps.digital/
MIT License
15 stars 38 forks source link

Specify Ruby version for publish workflow #330

Closed lfdebrux closed 1 year ago

lfdebrux commented 1 year ago

This PR fixes the publish workflow.

The ruby/setup-ruby action needs a version of Ruby specified to work. Previously it was reading the .ruby-version file, however we removed that in commit 2aa58c. We could restore that file, but because ruby-install doesn't support loose version specifiers, we'd have to keep it maintained. Instead we just tell the action to install the latest version of Ruby 3.