Skip to content

Pin ruby-version in release workflows - #2690

Merged
joelhawksley merged 2 commits into
mainfrom
joelhawksley-literate-lamp
Aug 24, 2026
Merged

joelhawksley merged 2 commits into
mainfrom
joelhawksley-literate-lamp

Conversation

@joelhawksley

@joelhawksley joelhawksley commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

The release workflow fails with:

Error: Unknown version 4.1-dev for ruby on ubuntu-24.04

ruby/setup-ruby in release.yml and publish-release.yml doesn't specify a ruby-version, so it falls back to .tool-versions, which is pinned to ruby 4.1-dev — not a version available on the runner.

Rather than changing .tool-versions, pin ruby-version: 4.0 directly in both workflows, matching the version used across ci.yml, lint.yml, and push_gem.yml.

Set ruby-version: 4.0 explicitly on ruby/setup-ruby in release.yml and
publish-release.yml so they don't fall back to .tool-versions (which
pins ruby 4.1-dev, not a version available on ubuntu-24.04 runners).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 805196c9-68d3-4379-b10f-350a76ed8aa9
@joelhawksley
joelhawksley force-pushed the joelhawksley-literate-lamp branch from 4ed55e6 to 544405d Compare August 24, 2026 17:20
@joelhawksley joelhawksley changed the title Fix .tool-versions Ruby to 4.0.6 Pin ruby-version in release workflows Aug 24, 2026
@joelhawksley
joelhawksley merged commit c6a8129 into main Aug 24, 2026
21 of 23 checks passed
@joelhawksley
joelhawksley deleted the joelhawksley-literate-lamp branch August 24, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant