Project

General

Profile

Actions

Patch #42089

closed

Fix Lint workflow error on 6.0-stable due to unsupported ruby/setup-ruby on Ubuntu 24.04

Added by Katsuya HIDAKA 3 days ago. Updated about 7 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The Lint workflow on the 6.0-stable branch is currently failing:
https://github.com/redmine/redmine/actions/runs/12647045791/job/35238740462

Run ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf
Error: The current runner (ubuntu-24.04-x64) was detected as self-hosted because the platform does not match a GitHub-hosted runner image (or that image is deprecated and no longer supported).
...

The issue is caused by using a version of ruby/setup-ruby that does not support Ubuntu 24.04.

This patch fixes the issue by updating the workflow to always use the latest version of ruby/setup-ruby v1:

diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml
index 07882bdc8..d147851b2 100644
--- a/.github/workflows/rubyonrails.yml
+++ b/.github/workflows/rubyonrails.yml
@@ -9,7 +9,7 @@ jobs:
       - name: Checkout code
         uses: actions/checkout@v4
       - name: Install Ruby and gems
-        uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
+        uses: ruby/setup-ruby@v1
         with:
           ruby-version: 3.2
           bundler-cache: true

Files

Actions

Also available in: Atom PDF