File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,23 @@ jobs:
83
83
runs-on : ubuntu-latest
84
84
steps :
85
85
- uses : actions/checkout@v2
86
+ - name : Get changed files
87
+ id : changed-files
88
+ uses : tj-actions/changed-files@v39
89
+ with :
90
+ files : |
91
+ **/*.rb
86
92
- name : Set up Ruby
93
+ if : steps.changed-files.outputs.any_changed == 'true'
87
94
uses : ruby/setup-ruby@v1
88
95
with :
89
96
ruby-version : ${{ env.RUBY_VERSION }}
90
97
- name : Install dependencies
98
+ if : steps.changed-files.outputs.any_changed == 'true'
91
99
run : bundle install
92
100
- name : Run RuboCop
93
- run : bundle exec rake rubocop
101
+ if : steps.changed-files.outputs.any_changed == 'true'
102
+ run : bundle exec rubocop ${{ steps.changed-files.outputs.all_changed_files }}
94
103
95
104
tests :
96
105
permissions : write-all
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ require 'English'
5
5
::Gem ::Specification . new do |s |
6
6
s . required_ruby_version = '>= 3.0'
7
7
s . name = 'leetcode-ruby'
8
- s . version = '8.2.5.7 '
8
+ s . version = '8.2.5.8 '
9
9
s . license = 'MIT'
10
10
s . files = ::Dir [ 'lib/**/*.rb' ] + %w[ README.md ]
11
11
s . executable = 'leetcode-ruby'
You can’t perform that action at this time.
0 commit comments