Skip to content

Commit a114d5c

Browse files
bsorboclaude
andauthored
[elasticgraph]: Bump ruby/setup-ruby to v1.335.0 on pre-1.0 (#1464)
The Release workflow on `pre-1.0` fails at **Set up Ruby** with `Error: Could not convert version to a float` ([failed run](https://github.com/block/elasticgraph/actions/runs/43307083099/job/131493105311)). `ubuntu-latest` now resolves to `ubuntu-26.04`. The pinned `ruby/setup-ruby` v1.229.0 doesn't list that image as a supported platform, so it treats the runner as self-hosted. On that path it skips resolving `ruby-version: ruby` to a concrete version and passes an empty string to `floatVersion()`, which throws. This bumps every `ruby/setup-ruby` pin on `pre-1.0` to the same SHA `main` uses (`7f797815…`, v1.335.0), which supports `ubuntu-26.04`. CI, publish-site, and update-gem-version-artifacts used the same old pin, so they'd hit this too. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3d9def0 commit a114d5c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6161

6262
- name: Setup Ruby
63-
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
63+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
6464
with:
6565
ruby-version: ${{ matrix.ruby }}
6666
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -103,7 +103,7 @@ jobs:
103103
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104104

105105
- name: Setup Ruby
106-
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
106+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
107107
with:
108108
ruby-version: "3.4"
109109
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

‎.github/workflows/publish-site.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4141

4242
- name: Set up Ruby
43-
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
43+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
4444
with:
4545
ruby-version: "3.4"
4646
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545

4646
- name: Set up Ruby
47-
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
47+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
4848
with:
4949
working-directory: config/release
5050
bundler-cache: true

‎.github/workflows/update-gem-version-artifacts.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
token: ${{ secrets.PAT_FOR_PUSHING_AND_TRIGGERING_CI }}
3333

3434
- name: Set up Ruby
35-
uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
35+
uses: ruby/setup-ruby@7f797815d8adceb1c412e7abefdd1ab4abc47a5f # v1.335.0
3636
with:
3737
ruby-version: "3.4"
3838
bundler-cache: true

0 commit comments

Comments
 (0)