Skip to content

Commit

Permalink
fix(workflow): actions/setup-ruby@v1 is deprecated
Browse files Browse the repository at this point in the history
Run actions/setup-ruby@v1
------------------------
NOTE: This action is deprecated and is no longer maintained.
Please, migrate to https://github.com/ruby/setup-ruby, which is being actively maintained.
------------------------
Error: Version 2.6.x not found
  • Loading branch information
iberianpig committed Dec 16, 2022
1 parent 6b2cf0a commit 767f4dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.x
ruby-version: 3.1

- name: Publish to RubyGems
run: |
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby-version: ['2.5.1', '2.6', '2.7', '3.0']
ruby-version: ['2.5.1', '2.6', '2.7', '3.0', '3.1']
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down

0 comments on commit 767f4dc

Please sign in to comment.