Skip to content

Commit

Permalink
Fix pre-commit action failures: switch to ruby/setup-ruby
Browse files Browse the repository at this point in the history
Should hopefully fix pre-commit errors of the form:
```
Run actions/setup-ruby@v1
  with:
    ruby-version: 2.6
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
    ImageOS: ubuntu20
------------------------
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 not found
```
  • Loading branch information
alex-mccarthy-unity committed Mar 4, 2024
1 parent f442194 commit 7daa75f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.10.x
- uses: actions/setup-ruby@v1
- uses: ruby/setup-ruby@v1
env:
ImageOS: ubuntu20
with:
ruby-version: '2.6'
ruby-version: '2.7'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.100'
Expand Down

0 comments on commit 7daa75f

Please sign in to comment.