Skip to content

Ruby gh action pins setup-ruby to 2yr old commit #319

@0atman

Description

@0atman

The default github action ruby template references this old commit which doesn't have any modern rubies 473e4d8

Solution

We fixed this by updating the pinned version to the latest release alphagov/forms-api@e3c8ad2

I think the template that github is using should either be unpinned to just v1, or regularly updated to the latest release hash.

Thank you


the code of or a link to the workflow used

"Ruby" from https://github.com/alphagov/forms-api/actions/new?category=none&query=ruby

the link to the log of a failed workflow job

https://github.com/alphagov/forms-api/runs/6093152207?check_suite_focus=true

the command and output of the step failing

Run ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
Error: Unknown version 3.0.3 for ruby on ubuntu-20.04
        available versions for ruby on ubuntu-20.04: 2.1.9, 2.2.10, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.9, 2.4.10, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6, 2.5.7, 2.5.8, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.7.0, 2.7.1, 2.7.2, 3.0.0-preview1, 3.0.0-preview2, 3.0.0-rc1, 3.0.0, head, debug
        File an issue at https://github.com/ruby/setup-ruby/issues if would like support for a new version

whether you are using a self-hosted runner

Not self-hosted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions