Skip to content

Commit 86a3a6e

Browse files
Fix pre-commit action failures: switch to ruby/setup-ruby (#6063)
Fixes 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 ``` While we're upgrading this pre-commit, also upgrade from ruby 2.6 to ruby 2.7.
1 parent f442194 commit 86a3a6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
- uses: actions/setup-python@v2
1818
with:
1919
python-version: 3.10.x
20-
- uses: actions/setup-ruby@v1
20+
- uses: ruby/setup-ruby@v1
2121
env:
2222
ImageOS: ubuntu20
2323
with:
24-
ruby-version: '2.6'
24+
ruby-version: '2.7'
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2526
- uses: actions/setup-dotnet@v3
2627
with:
2728
dotnet-version: '7.0.100'

0 commit comments

Comments
 (0)