lewagon / wait-on-check-action

This action can be used to halt any workflow until required checks for a given ref (e.g., in a sibling workflow) pass successfully.
MIT License
339 stars 62 forks source link

`lewagon/wait-on-check-action` fails to run due since Bundler `2.5.0` dropped support for Ruby 2.7. #98

Closed neilferreira closed 9 months ago

neilferreira commented 9 months ago

Using this workflow in GitHub actions no longer works as intended. The Dockerfile performs a gem install bundler without specifying a version of it. Bundler 2.5.0 was released over the weekend and dropped support for Ruby 2.7.

To reproduce:

git clone git@github.com:lewagon/wait-on-check-action.git
cd wait-on-check-action/
docker build .

Fails with:

 => ERROR [base 5/9] RUN gem install bundler                                                                                               
------
 > [base 5/9] RUN gem install bundler:
47.06 ERROR:  Error installing bundler:
47.06   The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.4.22. Try installing it with `gem install bundler -v 2.4.22`
47.06   bundler requires Ruby version >= 3.0.0. The current ruby version is 2.7.2.137.
------
Dockerfile:7
--------------------
   5 |     COPY Gemfile Gemfile
   6 |     COPY Gemfile.lock Gemfile.lock
   7 | >>> RUN gem install bundler
   8 |     RUN bundle config set with 'development test'
   9 |     RUN bundle install --jobs 20 --retry 5
--------------------

To fix:

Use this command instead in the Dockerfile:

gem install bundler -v 2.4.22